Average Error: 15.3 → 0.9
Time: 11.5s
Precision: 64
Internal Precision: 128
\[\sqrt[3]{\frac{g}{2 \cdot a}}\]
\[\frac{1}{\sqrt[3]{\frac{1}{g}} \cdot \sqrt[3]{a \cdot 2}}\]

Error

Bits error versus g

Bits error versus a

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 15.3

    \[\sqrt[3]{\frac{g}{2 \cdot a}}\]
  2. Using strategy rm
  3. Applied cbrt-div0.9

    \[\leadsto \color{blue}{\frac{\sqrt[3]{g}}{\sqrt[3]{2 \cdot a}}}\]
  4. Using strategy rm
  5. Applied *-un-lft-identity0.9

    \[\leadsto \frac{\color{blue}{1 \cdot \sqrt[3]{g}}}{\sqrt[3]{2 \cdot a}}\]
  6. Applied associate-/l*0.9

    \[\leadsto \color{blue}{\frac{1}{\frac{\sqrt[3]{2 \cdot a}}{\sqrt[3]{g}}}}\]
  7. Using strategy rm
  8. Applied div-inv0.9

    \[\leadsto \frac{1}{\color{blue}{\sqrt[3]{2 \cdot a} \cdot \frac{1}{\sqrt[3]{g}}}}\]
  9. Taylor expanded around inf 33.9

    \[\leadsto \frac{1}{\sqrt[3]{2 \cdot a} \cdot \color{blue}{{\left(\frac{1}{g}\right)}^{\frac{1}{3}}}}\]
  10. Simplified0.9

    \[\leadsto \frac{1}{\sqrt[3]{2 \cdot a} \cdot \color{blue}{\sqrt[3]{\frac{1}{g}}}}\]
  11. Final simplification0.9

    \[\leadsto \frac{1}{\sqrt[3]{\frac{1}{g}} \cdot \sqrt[3]{a \cdot 2}}\]

Reproduce

herbie shell --seed 2019022 
(FPCore (g a)
  :name "2-ancestry mixing, zero discriminant"
  (cbrt (/ g (* 2 a))))

Details

Time bar (total: 9.6s)Debug log

sample48.0ms

Algorithm
intervals
Results
20.0ms256×body80valid
16.0ms248×body80nan

simplify2.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
2.0ms
(cbrt (/ g (* 2 a)))

prune4.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 18.6b

localize8.0ms

Local error

Found 1 expressions with local error:

18.6b
(cbrt (/ g (* 2 a)))

rewrite1.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod
add-cube-cbrt
*-un-lft-identity
add-sqr-sqrt
add-log-exp
div-inv
add-exp-log
pow1/3
add-cbrt-cube
cbrt-div
pow1
Counts
1 → 13
Calls
1 calls:
Slowest
1.0ms
(cbrt (/ g (* 2 a)))

series133.0ms

Counts
1 → 3
Calls
1 calls:
Slowest
133.0ms
(cbrt (/ g (* 2 a)))

simplify406.0ms

Counts
8 → 16
Calls
8 calls:
Slowest
219.0ms
(* (cbrt 1/2) (exp (* 1/3 (- (log (/ 1 a)) (log (/ 1 g))))))
104.0ms
(* (cbrt 1/2) (exp (* 1/3 (- (log (/ -1 a)) (log (/ -1 g))))))
67.0ms
(* (cbrt 1/2) (exp (* 1/3 (- (log g) (log a)))))
5.0ms
(cbrt (* (cbrt (/ g (* 2 a))) (cbrt (/ g (* 2 a)))))
5.0ms
(cbrt (sqrt (/ g (* 2 a))))

prune159.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.3b

localize18.0ms

Local error

Found 3 expressions with local error:

0.6b
(cbrt (* 2 a))
0.6b
(cbrt g)
0.4b
(/ (cbrt g) (cbrt (* 2 a)))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
12×add-cube-cbrt
12×times-frac
12×*-un-lft-identity
12×add-sqr-sqrt
add-exp-log
cbrt-prod
associate-/r*
add-log-exp
associate-/l*
add-cbrt-cube
pow1
pow1/3
div-inv
div-exp
frac-2neg
clear-num
cbrt-undiv
Counts
3 → 48
Calls
3 calls:
Slowest
6.0ms
(/ (cbrt g) (cbrt (* 2 a)))
1.0ms
(cbrt (* 2 a))
0.0ms
(cbrt g)

series733.0ms

Counts
3 → 9
Calls
3 calls:
Slowest
299.0ms
(cbrt (* 2 a))
281.0ms
(cbrt g)
153.0ms
(/ (cbrt g) (cbrt (* 2 a)))

simplify484.0ms

Counts
42 → 57
Calls
42 calls:
Slowest
154.0ms
(/ (exp (* 1/3 (- (log (/ 1 a)) (log (/ 1 g))))) (cbrt 2))
123.0ms
(/ (* (exp (* 1/3 (- (log (/ -1 a)) (log (/ -1 g))))) (cbrt -1)) (cbrt -2))
42.0ms
(/ (exp (* 1/3 (- (log g) (log a)))) (cbrt 2))
32.0ms
(/ (* (cbrt (cbrt g)) (cbrt (cbrt g))) (* (cbrt (cbrt (* 2 a))) (cbrt (cbrt (* 2 a)))))
13.0ms
(/ (* (cbrt (cbrt g)) (cbrt (cbrt g))) (cbrt 2))

prune613.0ms

Pruning

19 alts after pruning (18 fresh and 1 done)

Merged error: 0.1b

localize6.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (* 2 a))
0.6b
(cbrt g)
0.3b
(/ (cbrt (* 2 a)) (cbrt g))
0.3b
(/ 1 (/ (cbrt (* 2 a)) (cbrt g)))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
24×times-frac
21×add-cube-cbrt
21×*-un-lft-identity
21×add-sqr-sqrt
19×associate-/r*
add-exp-log
cbrt-prod
pow1
add-log-exp
associate-/l*
add-cbrt-cube
div-inv
div-exp
pow1/3
frac-2neg
clear-num
rec-exp
inv-pow
pow-flip
associate-/r/
cbrt-undiv
Counts
4 → 79
Calls
4 calls:
Slowest
3.0ms
(/ (cbrt (* 2 a)) (cbrt g))
1.0ms
(/ 1 (/ (cbrt (* 2 a)) (cbrt g)))
0.0ms
(cbrt (* 2 a))
0.0ms
(cbrt g)

series969.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
322.0ms
(cbrt (* 2 a))
308.0ms
(cbrt g)
178.0ms
(/ (cbrt (* 2 a)) (cbrt g))
161.0ms
(/ 1 (/ (cbrt (* 2 a)) (cbrt g)))

simplify968.0ms

Counts
63 → 91
Calls
63 calls:
Slowest
175.0ms
(* (exp (* 1/3 (- (log (/ 1 g)) (log (/ 1 a))))) (cbrt 2))
147.0ms
(/ (exp (* 1/3 (- (log (/ 1 a)) (log (/ 1 g))))) (cbrt 2))
144.0ms
(/ (* (exp (* 1/3 (- (log (/ -1 a)) (log (/ -1 g))))) (cbrt -1)) (cbrt -2))
143.0ms
(/ (* (cbrt -2) (exp (* 1/3 (- (log (/ -1 g)) (log (/ -1 a)))))) (cbrt -1))
63.0ms
(* (exp (* 1/3 (- (log a) (log g)))) (cbrt 2))

prune840.0ms

Pruning

19 alts after pruning (18 fresh and 1 done)

Merged error: 0.0b

localize14.0ms

Local error

Found 4 expressions with local error:

0.6b
(cbrt (* 2 a))
0.6b
(cbrt g)
0.3b
(/ 1 (* (cbrt (* 2 a)) (/ 1 (cbrt g))))
0.3b
(/ 1 (cbrt g))

rewrite10.0ms

Algorithm
rewrite-expression-head
Rules
10×add-exp-log
pow1
add-cube-cbrt
*-un-lft-identity
rec-exp
add-sqr-sqrt
add-log-exp
pow-flip
add-cbrt-cube
associate-/r*
pow1/3
inv-pow
div-inv
associate-/r/
prod-exp
frac-2neg
clear-num
un-div-inv
associate-*r/
pow-prod-down
cbrt-prod
Counts
4 → 53
Calls
4 calls:
Slowest
7.0ms
(/ 1 (* (cbrt (* 2 a)) (/ 1 (cbrt g))))
1.0ms
(/ 1 (cbrt g))
1.0ms
(cbrt (* 2 a))
0.0ms
(cbrt g)

series1.0s

Counts
4 → 12
Calls
4 calls:
Slowest
309.0ms
(cbrt (* 2 a))
282.0ms
(/ 1 (cbrt g))
274.0ms
(cbrt g)
154.0ms
(/ 1 (* (cbrt (* 2 a)) (/ 1 (cbrt g))))

simplify453.0ms

Counts
23 → 65
Calls
23 calls:
Slowest
166.0ms
(/ (exp (* 1/3 (- (log (/ 1 a)) (log (/ 1 g))))) (cbrt 2))
148.0ms
(/ (* (exp (* 1/3 (- (log (/ -1 a)) (log (/ -1 g))))) (cbrt -1)) (cbrt -2))
63.0ms
(/ (exp (* 1/3 (- (log g) (log a)))) (cbrt 2))
19.0ms
(* (/ 1 (cbrt -1)) (pow (/ -1 g) 1/3))
12.0ms
(* (pow (* a -1) 1/3) (cbrt -2))

prune595.0ms

Pruning

20 alts after pruning (18 fresh and 2 done)

Merged error: 0.0b

regimes622.0ms

Accuracy

0% (0.9b remaining)

Error of 0.9b against oracle of 0.0b and baseline of 0.9b

bsearch2.0ms

end0.0ms

sample1.5s

Algorithm
intervals
Results
624.0ms8000×body80valid
572.0ms7878×body80nan