Details

Time bar (total: 9.8s)

sample22.0ms

Algorithm
intervals
Results
9.0ms283×body80valid

simplify15.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: 27.1b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* c c) (* d d))
0.7b
(- (* b c) (* a d))
26.7b
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))

rewrite44.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:
8.0ms
(+ (* c c) (* d d))
11.0ms
(- (* b c) (* a d))
25.0ms
(/ (- (* b c) (* a d)) (+ (* c c) (* d d)))

series161.0ms

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

simplify39.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0314555
11341496
25001481

prune187.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 14.1b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ 1 (* (hypot c d) 1))
0.2b
(* (/ 1 (* (hypot c d) 1)) (/ (- (* b c) (* a d)) (hypot c d)))
0.7b
(- (* b c) (* a d))
17.1b
(/ (- (* b c) (* a d)) (hypot c d))

rewrite94.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:
12.0ms
(/ 1 (* (hypot c d) 1))
50.0ms
(* (/ 1 (* (hypot c d) 1)) (/ (- (* b c) (* a d)) (hypot c d)))
8.0ms
(- (* b c) (* a d))
18.0ms
(/ (- (* b c) (* a d)) (hypot c d))

series401.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(/ 1 (* (hypot c d) 1))
180.0ms
(* (/ 1 (* (hypot c d) 1)) (/ (- (* b c) (* a d)) (hypot c d)))
41.0ms
(- (* b c) (* a d))
124.0ms
(/ (- (* b c) (* a d)) (hypot c d))

simplify62.0ms

Algorithm
egg-herbie
Counts
155 → 155
Iterations

Useful iterations: 2 (50.0ms)

IterNodesCost
05531207
123041003
25001995

prune314.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 5.1b

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (/ (- (* b c) (* a d)) (hypot c d)) (hypot c d))
0.7b
(- (* b c) (* a d))
17.1b
(/ (- (* b c) (* a d)) (hypot c d))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
84×times-frac
53×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
16×associate-/l*
10×add-exp-log add-cbrt-cube
associate-/r* div-inv
add-log-exp
cbrt-undiv div-exp
pow1 expm1-log1p-u div-sub log1p-expm1-u associate-/l/
flip3-- frac-2neg clear-num flip--
sub-neg fma-neg diff-log prod-diff
Counts
3 → 121
Calls
3 calls:
21.0ms
(/ (/ (- (* b c) (* a d)) (hypot c d)) (hypot c d))
8.0ms
(- (* b c) (* a d))
18.0ms
(/ (- (* b c) (* a d)) (hypot c d))

series293.0ms

Counts
3 → 9
Calls
3 calls:
127.0ms
(/ (/ (- (* b c) (* a d)) (hypot c d)) (hypot c d))
41.0ms
(- (* b c) (* a d))
124.0ms
(/ (- (* b c) (* a d)) (hypot c d))

simplify53.0ms

Algorithm
egg-herbie
Counts
130 → 130
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
04491408
116571307
250011298

prune344.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 5.1b

localize14.0ms

Local error

Found 4 expressions with local error:

0.4b
(/ (/ 1 (sqrt (hypot c d))) (/ (hypot c d) (/ (- (* b c) (* a d)) (sqrt (hypot c d)))))
0.7b
(- (* b c) (* a d))
7.8b
(/ (hypot c d) (/ (- (* b c) (* a d)) (sqrt (hypot c d))))
9.5b
(/ (- (* b c) (* a d)) (sqrt (hypot c d)))

rewrite321.0ms

Algorithm
rewrite-expression-head
Rules
5774×times-frac
2456×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
1317×sqrt-prod
171×div-inv
99×associate-/r*
50×add-exp-log
34×div-exp
32×add-cbrt-cube
28×associate-/l*
25×associate-/r/
19×cbrt-undiv
add-log-exp
pow1 expm1-log1p-u log1p-expm1-u
rec-exp frac-2neg 1-exp clear-num associate-/l/
flip3-- flip--
sub-neg fma-neg diff-log div-sub prod-diff
Counts
4 → 1855
Calls
4 calls:
63.0ms
(/ (/ 1 (sqrt (hypot c d))) (/ (hypot c d) (/ (- (* b c) (* a d)) (sqrt (hypot c d)))))
8.0ms
(- (* b c) (* a d))
19.0ms
(/ (hypot c d) (/ (- (* b c) (* a d)) (sqrt (hypot c d))))
20.0ms
(/ (- (* b c) (* a d)) (sqrt (hypot c d)))

series581.0ms

Counts
4 → 12
Calls
4 calls:
175.0ms
(/ (/ 1 (sqrt (hypot c d))) (/ (hypot c d) (/ (- (* b c) (* a d)) (sqrt (hypot c d)))))
44.0ms
(- (* b c) (* a d))
159.0ms
(/ (hypot c d) (/ (- (* b c) (* a d)) (sqrt (hypot c d))))
203.0ms
(/ (- (* b c) (* a d)) (sqrt (hypot c d)))

simplify397.0ms

Algorithm
egg-herbie
Counts
1867 → 1867
Iterations

Useful iterations: 0 (24.0ms)

IterNodesCost
0500252491

prune5.6s

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 5.1b

regimes206.0ms

Accuracy

32.8% (8.4b remaining)

Error of 12.5b against oracle of 4.1b and baseline of 16.6b

bsearch56.0ms

Steps
ItersRangePoint
7
7.67208945889578e+120
1.962517469472653e+123
1.9212074770170307e+123
7
-1.6491850885404887e+162
-1.800530875751681e+160
-3.1523796531642566e+161

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03015
13115
23115

end0.0ms

sample545.0ms

Algorithm
intervals
Results
275.0ms8434×body80valid