Details

Time bar (total: 4.9s)

sample47.0ms

Algorithm
intervals
Results
11.0ms182×body80valid
8.0ms21×body2560valid
7.0ms22×body1280valid
6.0ms15×body5120valid
2.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify9.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0198
1288
2368
3448
4468
5468

prune6.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 39.9b

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite58.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
20×*-un-lft-identity
18×add-cube-cbrt prod-diff
17×sqrt-prod
pow1
fma-neg
add-log-exp
sqrt-div
add-exp-log expm1-log1p-u sqrt-pow1 add-cbrt-cube log1p-expm1-u
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ hypot-def distribute-lft-out--
Counts
3 → 74
Calls
3 calls:
29.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
22.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series35.0ms

Counts
3 → 9
Calls
3 calls:
22.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify43.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0314760
11192522
25001473

prune529.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 6.8b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(hypot re im)
0.0b
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
0.6b
(- (hypot re im) re)

rewrite17.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt *-un-lft-identity
10×add-cube-cbrt
prod-diff
pow1
add-log-exp
add-exp-log expm1-log1p-u fma-neg add-cbrt-cube log1p-expm1-u
sqrt-pow1 sqrt-div associate-*r/
sub-neg hypot-udef flip3-- flip3-+ pow1/2 diff-log pow-prod-down sqrt-prod flip-- flip-+ distribute-lft-out-- difference-of-squares
Counts
3 → 53
Calls
3 calls:
0.0ms
(hypot re im)
12.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
3.0ms
(- (hypot re im) re)

series34.0ms

Counts
3 → 9
Calls
3 calls:
7.0ms
(hypot re im)
19.0ms
(sqrt (* 2.0 (+ (- (hypot re im) re) 0)))
8.0ms
(- (hypot re im) re)

simplify47.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0283345
11118247
25001236

prune397.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 6.8b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(sqrt (hypot re im))
0.0b
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re)) 0)))
18.0b
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-sqr-sqrt
sqrt-prod
add-cube-cbrt *-un-lft-identity
add-exp-log expm1-log1p-u sqrt-pow1 add-cbrt-cube log1p-expm1-u add-log-exp
pow1/2
rem-sqrt-square sqrt-div associate-*r/
flip3-+ pow-prod-down flip-+ fma-udef
Counts
4 → 55
Calls
4 calls:
1.0ms
(sqrt (hypot re im))
1.0ms
(sqrt (hypot re im))
4.0ms
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re)) 0)))
0.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

series74.0ms

Counts
4 → 12
Calls
4 calls:
13.0ms
(sqrt (hypot re im))
11.0ms
(sqrt (hypot re im))
27.0ms
(sqrt (* 2.0 (+ (fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re)) 0)))
23.0ms
(fma (sqrt (hypot re im)) (sqrt (hypot re im)) (* -1 re))

simplify40.0ms

Algorithm
egg-herbie
Counts
67 → 67
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0260458
1902401
25002379

prune606.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 6.8b

localize16.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (sqrt (hypot re im)))
0.5b
(cbrt (sqrt (hypot re im)))
0.5b
(* (cbrt (sqrt (hypot re im))) (cbrt (sqrt (hypot re im))))
17.9b
(fma (sqrt (hypot re im)) (* (* (cbrt (sqrt (hypot re im))) (cbrt (sqrt (hypot re im)))) (cbrt (sqrt (hypot re im)))) (* -1 re))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
52×cbrt-prod
42×add-sqr-sqrt
26×sqrt-prod
20×add-cube-cbrt *-un-lft-identity
11×pow1 swap-sqr
associate-*r* associate-*l* unswap-sqr
pow1/3
add-exp-log
expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
pow-prod-down pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod fma-udef
Counts
4 → 100
Calls
4 calls:
1.0ms
(cbrt (sqrt (hypot re im)))
1.0ms
(cbrt (sqrt (hypot re im)))
9.0ms
(* (cbrt (sqrt (hypot re im))) (cbrt (sqrt (hypot re im))))
0.0ms
(fma (sqrt (hypot re im)) (* (* (cbrt (sqrt (hypot re im))) (cbrt (sqrt (hypot re im)))) (cbrt (sqrt (hypot re im)))) (* -1 re))

series86.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(cbrt (sqrt (hypot re im)))
19.0ms
(cbrt (sqrt (hypot re im)))
21.0ms
(* (cbrt (sqrt (hypot re im))) (cbrt (sqrt (hypot re im))))
26.0ms
(fma (sqrt (hypot re im)) (* (* (cbrt (sqrt (hypot re im))) (cbrt (sqrt (hypot re im)))) (cbrt (sqrt (hypot re im)))) (* -1 re))

simplify104.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 3 (95.0ms)

IterNodesCost
02081026
1720943
23425868
35001820

prune1.1s

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 6.8b

regimes357.0ms

Accuracy

-17.7% (6.8b remaining)

Error of 14.2b against oracle of 7.4b and baseline of 13.2b

bsearch125.0ms

Steps
ItersRangePoint
9
1.0963672838557836e+114
8.302175042271763e+120
3.3371304803298494e+120
10
1.7706522306460648e-167
8.676345970198339e-157
8.575500542659089e-157
9
-2.038197479000767e+61
-2.8729039666377685e+54
-8.34056697677881e+54
10
-1.8826421970161096e+123
-1.7180035749932514e+111
-4.1789077984601566e+114

simplify4.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 2 (1.0ms)

IterNodesCost
04134
14834
25414
35714
46314
57414
68114
78214
88214

end0.0ms

sample1.1s

Algorithm
intervals
Results
373.0ms6023×body80valid
248.0ms681×body2560valid
148.0ms487×body1280valid
133.0ms303×body5120valid
66.0ms281×body640valid
27.0ms151×body320valid
9.0ms74×body160valid