Details

Time bar (total: 3.8s)

sample20.0ms

Algorithm
intervals
Results
10.0ms272×body80valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0177
1217
2217

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 22.9b

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* c c) (* d d))
0.3b
(+ (* a c) (* b d))
22.5b
(/ (+ (* a c) (* b d)) (+ (* c c) (* d d)))

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
times-frac
add-log-exp
add-exp-log add-cbrt-cube
flip3-+ flip-+
pow1 expm1-log1p-u associate-/r* log1p-expm1-u associate-/l*
+-commutative fma-def sum-log associate-/r/ associate-/l/
cbrt-undiv frac-2neg div-exp clear-num div-inv
Counts
3 → 61
Calls
3 calls:
3.0ms
(+ (* c c) (* d d))
2.0ms
(+ (* a c) (* b d))
11.0ms
(/ (+ (* a c) (* b d)) (+ (* c c) (* d d)))

series141.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* c c) (* d d))
33.0ms
(+ (* a c) (* b d))
82.0ms
(/ (+ (* a c) (* b d)) (+ (* c c) (* d d)))

simplify132.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0290532
11199475
24872462
35001462

prune195.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 15.1b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma a c (* b d))
0.0b
(/ 1 (* (hypot c d) 1))
0.2b
(* (/ 1 (* (hypot c d) 1)) (/ (fma a c (* b d)) (* (hypot c d) 1)))
14.7b
(/ (fma a c (* b d)) (* (hypot c d) 1))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
170×add-exp-log
92×prod-exp
63×div-exp
50×add-cbrt-cube
41×1-exp
17×cbrt-unprod
16×cbrt-undiv
15×rec-exp
14×add-sqr-sqrt
12×add-cube-cbrt *-un-lft-identity times-frac
pow1
associate-*r* associate-*l*
associate-/l*
expm1-log1p-u log1p-expm1-u div-inv add-log-exp
pow-flip frac-2neg pow-prod-down clear-num associate-/r*
frac-times associate-*r/ associate-*l/ *-commutative fma-udef inv-pow unswap-sqr
Counts
4 → 145
Calls
4 calls:
0.0ms
(fma a c (* b d))
4.0ms
(/ 1 (* (hypot c d) 1))
23.0ms
(* (/ 1 (* (hypot c d) 1)) (/ (fma a c (* b d)) (* (hypot c d) 1)))
3.0ms
(/ (fma a c (* b d)) (* (hypot c d) 1))

series388.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(fma a c (* b d))
56.0ms
(/ 1 (* (hypot c d) 1))
182.0ms
(* (/ 1 (* (hypot c d) 1)) (/ (fma a c (* b d)) (* (hypot c d) 1)))
114.0ms
(/ (fma a c (* b d)) (* (hypot c d) 1))

simplify45.0ms

Algorithm
egg-herbie
Counts
157 → 157
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
04861191
11654892
25002884

prune284.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 5.3b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a c (* b d))
0.1b
(/ (/ (fma a c (* b d)) (hypot c d)) (* (hypot c d) 1))
14.7b
(/ (fma a c (* b d)) (hypot c d))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
40×times-frac
25×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
22×add-exp-log
17×add-cbrt-cube
16×associate-/l*
10×div-exp
cbrt-undiv
prod-exp associate-/r* div-inv
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg 1-exp clear-num cbrt-unprod
fma-udef associate-/l/
Counts
3 → 89
Calls
3 calls:
0.0ms
(fma a c (* b d))
6.0ms
(/ (/ (fma a c (* b d)) (hypot c d)) (* (hypot c d) 1))
2.0ms
(/ (fma a c (* b d)) (hypot c d))

series267.0ms

Counts
3 → 9
Calls
3 calls:
41.0ms
(fma a c (* b d))
115.0ms
(/ (/ (fma a c (* b d)) (hypot c d)) (* (hypot c d) 1))
112.0ms
(/ (fma a c (* b d)) (hypot c d))

simplify76.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 3 (68.0ms)

IterNodesCost
0297767
11133677
23251677
35001670

prune276.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 5.2b

localize22.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (* (hypot c d) 1))
0.2b
(* (/ 1 (* (hypot c d) 1)) (/ 1 (/ (hypot c d) (fma a c (* b d)))))
0.3b
(/ 1 (/ (hypot c d) (fma a c (* b d))))
14.8b
(/ (hypot c d) (fma a c (* b d)))

rewrite88.0ms

Algorithm
rewrite-expression-head
Rules
264×add-exp-log
162×times-frac
126×div-exp
118×prod-exp
107×add-sqr-sqrt
95×*-un-lft-identity
93×add-cube-cbrt
70×1-exp
52×add-cbrt-cube
46×rec-exp
44×associate-*r*
21×cbrt-undiv
17×associate-/r*
15×pow1
13×cbrt-unprod
12×div-inv
associate-/l*
pow-flip associate-*l*
pow-prod-down
unswap-sqr
expm1-log1p-u log1p-expm1-u inv-pow add-log-exp
frac-2neg clear-num
associate-/r/
frac-times associate-*r/ associate-*l/ un-div-inv *-commutative
Counts
4 → 293
Calls
4 calls:
4.0ms
(/ 1 (* (hypot c d) 1))
56.0ms
(* (/ 1 (* (hypot c d) 1)) (/ 1 (/ (hypot c d) (fma a c (* b d)))))
10.0ms
(/ 1 (/ (hypot c d) (fma a c (* b d))))
4.0ms
(/ (hypot c d) (fma a c (* b d)))

series439.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(/ 1 (* (hypot c d) 1))
180.0ms
(* (/ 1 (* (hypot c d) 1)) (/ 1 (/ (hypot c d) (fma a c (* b d)))))
112.0ms
(/ 1 (/ (hypot c d) (fma a c (* b d))))
90.0ms
(/ (hypot c d) (fma a c (* b d)))

simplify83.0ms

Algorithm
egg-herbie
Counts
305 → 305
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
010242763
139452410
250012207

prune506.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 5.2b

regimes159.0ms

Accuracy

31.5% (7.8b remaining)

Error of 13.8b against oracle of 6.0b and baseline of 17.4b

bsearch78.0ms

Steps
ItersRangePoint
9
9.049284248076656e+175
8.048742643953444e+181
1.7187819587037017e+178
8
-4.2002350228108203e+76
-1.3647412722380514e+74
-4.153623860284757e+76

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02714
13014
23014

end0.0ms

sample508.0ms

Algorithm
intervals
Results
309.0ms8448×body80valid