Details

Time bar (total: 3.3s)

sample25.0ms

Algorithm
intervals
Results
7.0ms200×body80valid
3.0ms15×body2560valid
3.0ms11×body5120valid
2.0ms13×body1280valid
1.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 34.8b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.7b
(- (sqrt (+ (* re re) (* im im))) re)
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
11.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

series264.0ms

Counts
3 → 9
Calls
3 calls:
172.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
47.0ms
(sqrt (+ (* re re) (* im im)))

simplify74.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (69.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune147.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 15.8b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
5.7b
(exp (log (sqrt (+ (* re re) (* im im)))))
13.1b
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite58.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
10×pow1 *-un-lft-identity
add-cube-cbrt log-prod exp-sum sqrt-prod
exp-prod sqrt-div add-log-exp
add-exp-log sqrt-pow1 add-cbrt-cube
pow1/2 log-pow difference-of-squares
log-div flip3-- flip3-+ exp-diff associate-*r/ flip-- flip-+
sub-neg rem-sqrt-square diff-log pow-prod-down rem-exp-log distribute-lft-out--
Counts
4 → 66
Calls
4 calls:
19.0ms
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
5.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
28.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series288.0ms

Counts
4 → 12
Calls
4 calls:
170.0ms
(sqrt (* 2.0 (- (exp (log (sqrt (+ (* re re) (* im im))))) re)))
36.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
44.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify78.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0283630
1843573
22616551
35001542

prune198.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 15.6b

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
7.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.6b
(sqrt (+ (* re re) (* im im)))
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite56.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
51×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
associate-*r* associate-*l* pow-prod-up unswap-sqr
flip3-+ flip-+
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
pow2 sub-neg flip3-- pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative flip-- cbrt-unprod difference-of-squares
Counts
4 → 126
Calls
4 calls:
25.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
19.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series154.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
45.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify45.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
02611112
1935975
25001951

prune291.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 15.6b

localize15.0ms

Local error

Found 4 expressions with local error:

4.9b
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
7.0b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
26.6b
(sqrt (+ (* re re) (* im im)))
26.6b
(sqrt (+ (* re re) (* im im)))

rewrite52.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
sqrt-prod add-log-exp
add-exp-log log-prod exp-prod sqrt-div exp-sum add-cbrt-cube
rem-sqrt-square log-div flip3-- sqrt-pow1 flip3-+ pow1/2 exp-diff flip-- flip-+ difference-of-squares
sub-neg diff-log log-pow rem-exp-log
Counts
4 → 61
Calls
4 calls:
25.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
19.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series165.0ms

Counts
4 → 12
Calls
4 calls:
48.0ms
(exp (log (- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)))
45.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify111.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 4 (103.0ms)

IterNodesCost
0191746
1442597
21109556
33525548
45002542

prune227.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 15.6b

regimes240.0ms

Accuracy

58.8% (8.8b remaining)

Error of 26.3b against oracle of 17.5b and baseline of 38.8b

bsearch74.0ms

Steps
ItersRangePoint
9
-1.2356307952735333e-300
-8.537658570634138e-307
-5.172107167165975e-306
5
-2.408561575053933e+131
-6.201413291767227e+130
-1.4667592323261061e+131

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04129
14129

end0.0ms

sample677.0ms

Algorithm
intervals
Results
208.0ms6068×body80valid
137.0ms700×body2560valid
72.0ms438×body1280valid
69.0ms281×body5120valid
34.0ms276×body640valid
19.0ms163×body320valid
5.0ms74×body160valid