Details

Time bar (total: 4.3s)

sample30.0ms

Algorithm
intervals
Results
20.0ms263×body80valid

simplify14.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0217
1407
2567
3767
4907
5947
6947

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 23.4b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* c c) (* d d))
0.3b
(- (* b c) (* a d))
23.0b
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))

rewrite18.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
pow1 expm1-log1p-u associate-/r* log1p-expm1-u associate-/l*
flip3-- flip3-+ associate-/r/ flip-- flip-+ associate-/l/
cbrt-undiv +-commutative sub-neg fma-def frac-2neg fma-neg diff-log div-sub div-exp prod-diff clear-num sum-log div-inv
Counts
3 → 64
Calls
3 calls:
3.0ms
(+ (* c c) (* d d))
3.0ms
(- (* b c) (* a d))
11.0ms
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))

series153.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* c c) (* d d))
41.0ms
(- (* b c) (* a d))
86.0ms
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))

simplify41.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0314555
11341496
25001481

prune197.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 9.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (* (hypot c d) 1))
0.3b
(* (/ 1 (* (hypot c d) 1)) (/ (- (* b c) (* a d)) (hypot c d)))
0.3b
(- (* b c) (* a d))
13.1b
(/ (- (* b c) (* a d)) (hypot c d))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
83×add-exp-log
38×prod-exp
32×add-cbrt-cube
29×div-exp
28×add-sqr-sqrt
25×times-frac
23×add-cube-cbrt *-un-lft-identity
18×1-exp
13×associate-*r*
10×cbrt-undiv
pow1 rec-exp cbrt-unprod
associate-*l*
associate-/l* add-log-exp
expm1-log1p-u associate-/r* log1p-expm1-u div-inv
flip3-- pow-flip frac-2neg pow-prod-down clear-num flip-- associate-/l/ unswap-sqr
frac-times sub-neg fma-neg diff-log div-sub associate-*r/ prod-diff associate-*l/ *-commutative inv-pow
Counts
4 → 143
Calls
4 calls:
4.0ms
(/ 1 (* (hypot c d) 1))
25.0ms
(* (/ 1 (* (hypot c d) 1)) (/ (- (* b c) (* a d)) (hypot c d)))
3.0ms
(- (* b c) (* a d))
7.0ms
(/ (- (* b c) (* a d)) (hypot c d))

series389.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(/ 1 (* (hypot c d) 1))
178.0ms
(* (/ 1 (* (hypot c d) 1)) (/ (- (* b c) (* a d)) (hypot c d)))
37.0ms
(- (* b c) (* a d))
119.0ms
(/ (- (* b c) (* a d)) (hypot c d))

simplify64.0ms

Algorithm
egg-herbie
Counts
155 → 155
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
05531207
123041003
25001995

prune325.0ms

Pruning

11 alts after pruning (9 fresh and 2 done)

Merged error: 2.9b

localize9.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot c d)
0.1b
(/ (/ (- (* b c) (* a d)) (hypot c d)) (hypot c d))
0.3b
(- (* b c) (* a d))
13.1b
(/ (- (* b c) (* a d)) (hypot c d))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
84×times-frac
54×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
16×associate-/l*
11×add-exp-log add-cbrt-cube
associate-/r* div-inv add-log-exp
pow1 cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u
div-sub associate-/l/
flip3-- frac-2neg clear-num flip--
sub-neg hypot-udef fma-neg diff-log prod-diff
Counts
4 → 131
Calls
4 calls:
0.0ms
(hypot c d)
10.0ms
(/ (/ (- (* b c) (* a d)) (hypot c d)) (hypot c d))
3.0ms
(- (* b c) (* a d))
7.0ms
(/ (- (* b c) (* a d)) (hypot c d))

series319.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(hypot c d)
117.0ms
(/ (/ (- (* b c) (* a d)) (hypot c d)) (hypot c d))
38.0ms
(- (* b c) (* a d))
117.0ms
(/ (- (* b c) (* a d)) (hypot c d))

simplify52.0ms

Algorithm
egg-herbie
Counts
143 → 143
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
04581435
116671331
250011322

prune384.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 2.9b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (/ (* b c) (hypot c d)) (/ (* a d) (hypot c d)))
0.1b
(/ (- (/ (* b c) (hypot c d)) (/ (* a d) (hypot c d))) (hypot c d))
6.5b
(/ (* b c) (hypot c d))
9.8b
(/ (* a d) (hypot c d))

rewrite63.0ms

Algorithm
rewrite-expression-head
Rules
69×times-frac
59×add-sqr-sqrt *-un-lft-identity
49×add-cube-cbrt prod-diff
28×div-inv
16×add-exp-log add-cbrt-cube
associate-/r*
associate-/l*
fma-neg
add-log-exp
cbrt-undiv distribute-rgt-out-- div-exp distribute-lft-out-- difference-of-squares
pow1 expm1-log1p-u log1p-expm1-u associate-/l/
frac-2neg clear-num
flip3-- prod-exp frac-sub flip-- cbrt-unprod sub-div
sub-neg diff-log div-sub
Counts
4 → 167
Calls
4 calls:
13.0ms
(- (/ (* b c) (hypot c d)) (/ (* a d) (hypot c d)))
36.0ms
(/ (- (/ (* b c) (hypot c d)) (/ (* a d) (hypot c d))) (hypot c d))
3.0ms
(/ (* b c) (hypot c d))
4.0ms
(/ (* a d) (hypot c d))

series555.0ms

Counts
4 → 12
Calls
4 calls:
183.0ms
(- (/ (* b c) (hypot c d)) (/ (* a d) (hypot c d)))
236.0ms
(/ (- (/ (* b c) (hypot c d)) (/ (* a d) (hypot c d))) (hypot c d))
65.0ms
(/ (* b c) (hypot c d))
71.0ms
(/ (* a d) (hypot c d))

simplify79.0ms

Algorithm
egg-herbie
Counts
179 → 179
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
06072530
125761870
250011867

prune384.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0.0b

regimes165.0ms

Accuracy

-4.9% (0.9b remaining)

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

bsearch108.0ms

Steps
ItersRangePoint
7
1.3145738125484174e+36
1.9859741489859315e+38
9.945393932890353e+36
10
-3.1306979553032304e+60
-4.332132377297825e+46
-4.229310775640722e+47

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04339
14739
24739

end0.0ms

sample864.0ms

Algorithm
intervals
Results
648.0ms8480×body80valid