Details

Time bar (total: 8.6s)

analyze1.4s (16.8%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.8%0.2%0
0%99.8%0.2%1
0%99.8%0.2%2
0%99.8%0.2%3
0%99.8%0.2%4
0%99.8%0.2%5
9.4%90.4%0.2%6
17.2%82.7%0.2%7
19.5%80.3%0.2%8
30.8%69%0.2%9
35.5%64.3%0.2%10
42.4%57.4%0.2%11
47.1%52.7%0.2%12
48.9%50.8%0.3%13
50%49.7%0.4%14
Compiler

Compiled 38 to 20 computations (47.4% saved)

sample118.0ms (1.4%)

Algorithm
intervals
Results
47.0ms81×body1024invalid
28.0ms244×body128valid
14.0ms39×body512invalid
3.0ms12×body256invalid
3.0msbody1024valid
2.0msbody512valid
2.0ms18×body128invalid
0.0msbody256valid
Compiler

Compiled 75 to 43 computations (42.7% saved)

simplify158.0ms (1.8%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (59.0ms)

IterNodesCost
0494472
1494472

prune14.0ms (0.2%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112
Error
37.2b
Counts
2 → 1
Compiler

Compiled 73 to 38 computations (47.9% saved)

localize23.0ms (0.3%)

Local error

Found 4 expressions with local error:

0.9b
(*.f64 (atan2.f64 x.im x.re) y.im)
31.0b
(cos.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))
34.1b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
34.1b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))

rewrite28.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt_binary64
*-un-lft-identity_binary64 pow1_binary64 add-cube-cbrt_binary64
add-exp-log_binary64 add-cbrt-cube_binary64 sqrt-prod_binary64
add-log-exp_binary64 sqrt-div_binary64
associate-*r*_binary64 associate-*l*_binary64
flip3-+_binary64 pow1/2_binary64 sqrt-pow1_binary64 rem-sqrt-square_binary64 flip-+_binary64
pow-prod-down_binary64 cbrt-unprod_binary64 unswap-sqr_binary64 prod-exp_binary64 cos-sum_binary64 *-commutative_binary64
Counts
4 → 56
Calls

4 calls:

7.0ms
(cos.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))
6.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)

series294.0ms (3.4%)

Counts
4 → 12
Calls

4 calls:

205.0ms
(cos.f64 (+.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.im) (*.f64 (atan2.f64 x.im x.re) y.re)))
34.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
33.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
22.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))

simplify119.0ms (1.4%)

Algorithm
egg-herbie
Counts
68 → 68
Iterations

Useful iterations: 0 (98.0ms)

IterNodesCost
048631251
148631251

prune109.0ms (1.3%)

Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New64468
Fresh000
Picked101
Done000
Total65469
Error
21.0b
Counts
69 → 4
Compiler

Compiled 3000 to 828 computations (72.4% saved)

localize19.0ms (0.2%)

Local error

Found 4 expressions with local error:

0.0b
(exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im)))
0.3b
(*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re)
0.9b
(*.f64 (atan2.f64 x.im x.re) y.im)
34.1b
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))

rewrite24.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt_binary64
11×pow1_binary64
10×*-un-lft-identity_binary64 add-cube-cbrt_binary64
associate-*l*_binary64
add-exp-log_binary64 add-cbrt-cube_binary64
add-log-exp_binary64
associate-*r*_binary64
log-pow_binary64 sqrt-prod_binary64 exp-prod_binary64
pow-prod-down_binary64 pow1/2_binary64 cbrt-unprod_binary64 rem-exp-log_binary64 sqrt-pow1_binary64 unswap-sqr_binary64 exp-sum_binary64 prod-exp_binary64 sqrt-div_binary64 *-commutative_binary64
flip3-+_binary64 sub-neg_binary64 diff-log_binary64 cancel-sign-sub-inv_binary64 exp-diff_binary64 rem-sqrt-square_binary64 flip-+_binary64
Counts
4 → 69
Calls

4 calls:

5.0ms
(*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re)
5.0ms
(exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)

series257.0ms (3%)

Counts
4 → 12
Calls

4 calls:

135.0ms
(exp.f64 (-.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re) (*.f64 (atan2.f64 x.im x.re) y.im)))
71.0ms
(*.f64 (log.f64 (sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))) y.re)
27.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
23.0ms
(sqrt.f64 (+.f64 (*.f64 x.re x.re) (*.f64 x.im x.im)))

simplify83.0ms (1%)

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 0 (62.0ms)

IterNodesCost
049531596
149531596

prune99.0ms (1.2%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New78381
Fresh033
Picked011
Done000
Total78785
Error
3.4b
Counts
85 → 7
Compiler

Compiled 2194 to 1037 computations (52.7% saved)

localize10.0ms (0.1%)

Local error

Found 2 expressions with local error:

0.0b
(/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))
0.9b
(*.f64 (atan2.f64 x.im x.re) y.im)

rewrite14.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
22×add-sqr-sqrt_binary64
21×times-frac_binary64
20×*-un-lft-identity_binary64 add-cube-cbrt_binary64
12×unpow-prod-down_binary64
associate-/l*_binary64
add-exp-log_binary64 add-cbrt-cube_binary64
pow1_binary64 sqr-pow_binary64
associate-/r*_binary64 associate-*r*_binary64 associate-*l*_binary64 div-exp_binary64
add-log-exp_binary64
pow-to-exp_binary64 pow-prod-down_binary64 cbrt-unprod_binary64 cbrt-undiv_binary64 unswap-sqr_binary64 clear-num_binary64 prod-exp_binary64 frac-2neg_binary64 div-inv_binary64 pow-exp_binary64 *-commutative_binary64
Counts
2 → 63
Calls

2 calls:

5.0ms
(/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)

series142.0ms (1.7%)

Counts
2 → 6
Calls

2 calls:

116.0ms
(/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))
26.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)

simplify67.0ms (0.8%)

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 0 (46.0ms)

IterNodesCost
050321852

prune63.0ms (0.7%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New68169
Fresh055
Picked011
Done011
Total68876
Error
3.4b
Counts
76 → 8
Compiler

Compiled 1586 to 502 computations (68.3% saved)

localize13.0ms (0.2%)

Local error

Found 4 expressions with local error:

0.0b
(*.f64 (cbrt.f64 (/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))) (cbrt.f64 (/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))))
0.9b
(*.f64 (atan2.f64 x.im x.re) y.im)
0.9b
(*.f64 (atan2.f64 x.im x.re) y.im)
0.9b
(*.f64 (atan2.f64 x.im x.re) y.im)

rewrite76.0ms (0.9%)

Algorithm
rewrite-expression-head
Rules
146×add-sqr-sqrt_binary64
140×cbrt-prod_binary64
114×times-frac_binary64
70×*-un-lft-identity_binary64 add-cube-cbrt_binary64
46×unpow-prod-down_binary64
37×associate-*r*_binary64 associate-*l*_binary64
28×swap-sqr_binary64 unswap-sqr_binary64
22×sqr-pow_binary64
17×pow1_binary64
12×add-exp-log_binary64
10×add-cbrt-cube_binary64
pow1/3_binary64
pow-prod-down_binary64
cbrt-div_binary64 add-log-exp_binary64 cbrt-unprod_binary64 prod-exp_binary64 div-inv_binary64 *-commutative_binary64
pow-prod-up_binary64 pow-sqr_binary64
associate-*r/_binary64 pow-plus_binary64 frac-times_binary64 pow2_binary64 associate-*l/_binary64
Counts
4 → 184
Calls

4 calls:

32.0ms
(*.f64 (cbrt.f64 (/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))) (cbrt.f64 (/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))))
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
4.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)

series459.0ms (5.3%)

Counts
4 → 12
Calls

4 calls:

377.0ms
(*.f64 (cbrt.f64 (/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))) (cbrt.f64 (/.f64 (pow.f64 x.re y.re) (exp.f64 (*.f64 (atan2.f64 x.im x.re) y.im)))))
32.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
25.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)
24.0ms
(*.f64 (atan2.f64 x.im x.re) y.im)

simplify152.0ms (1.8%)

Algorithm
egg-herbie
Counts
196 → 196
Iterations

Useful iterations: 0 (68.0ms)

IterNodesCost
049328966
149328966

prune242.0ms (2.8%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1951196
Fresh055
Picked101
Done022
Total1968204
Error
3.4b
Counts
204 → 8
Compiler

Compiled 9580 to 1445 computations (84.9% saved)

regimes506.0ms (5.9%)

Accuracy

Total 5.2b remaining (61.5%)

Threshold costs 0b (0%)

Compiler

Compiled 4337 to 2485 computations (42.7% saved)

bsearch262.0ms (3.1%)

Steps
ItersRangePoint
10
-1.580981949934583e-298
5.542257536724659e-307
-3.27886602974523e-310
9
-6.288966763378732e-158
-5.625656401323206e-163
-1.4463420928420722e-158
10
-1.2234419803510532e-24
-3.4194638415434316e-40
-2.9631297454697988e-33
Compiler

Compiled 1 to 4 computations (-300% saved)

simplify5.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
083127
183127

end0.0ms (0%)

sample3.8s (44.1%)

Algorithm
intervals
Results
1.2s2450×body1024invalid
838.0ms7614×body128valid
337.0ms999×body512invalid
98.0ms433×body256invalid
82.0ms161×body1024valid
66.0ms568×body128invalid
47.0ms139×body512valid
20.0ms77×body256valid
18.0ms25×body2048invalid
7.0msbody2048valid
Compiler

Compiled 954 to 539 computations (43.5% saved)

Profiling

Loading profile data...