Details

Time bar (total: 4.3s)

sample25.0ms

Algorithm
intervals
Results
6.0ms196×body80valid
4.0ms20×body2560valid
2.0ms13×body1280valid
1.0msbody5120valid
1.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify8.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: 36.6b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite39.0ms

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

series280.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
170.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify91.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (85.0ms)

IterNodesCost
0258459
1938422
23098412
35001410

prune189.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 15.7b

localize12.0ms

Local error

Found 4 expressions with local error:

0.9b
(- (sqrt (+ (* re re) (* im im))) re)
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
27.5b
(sqrt (+ (* re re) (* im im)))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
4 → 60
Calls
4 calls:
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))

series164.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify82.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 4 (76.0ms)

IterNodesCost
0135456
1332432
2839424
32503422
45002420

prune235.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 15.7b

localize13.0ms

Local error

Found 4 expressions with local error:

0.4b
(pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3)
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
15.9b
(cbrt (pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
14×cbrt-prod
13×*-un-lft-identity
11×add-cube-cbrt
pow1
unpow-prod-down cube-prod sqrt-prod
sqrt-div add-log-exp
add-exp-log add-cbrt-cube
cube-div pow-pow associate-*r/
pow-unpow flip3-- sqrt-pow1 flip--
cube-mult cbrt-div pow1/2 unpow3 difference-of-squares sqr-pow
pow-to-exp sub-neg rem-sqrt-square flip3-+ pow1/3 diff-log pow-prod-down pow-exp sqrt-pow2 rem-cbrt-cube flip-+ distribute-lft-out-- rem-cube-cbrt
Counts
4 → 86
Calls
4 calls:
13.0ms
(pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3)
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(cbrt (pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3))
7.0ms
(sqrt (+ (* re re) (* im im)))

series720.0ms

Counts
4 → 12
Calls
4 calls:
464.0ms
(pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3)
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
171.0ms
(cbrt (pow (sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re))) 3))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify51.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0426918
11635878
25001860

prune250.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 15.7b

localize17.0ms

Local error

Found 4 expressions with local error:

0.9b
(- (sqrt (+ (* re re) (* im im))) re)
4.4b
(exp (log (- (sqrt (+ (* re re) (* im im))) re)))
15.9b
(cbrt (pow (sqrt (* 2.0 (exp (log (- (sqrt (+ (* re re) (* im im))) re))))) 3))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt
14×cbrt-prod *-un-lft-identity
10×add-cube-cbrt
sqrt-prod
pow1 log-prod exp-sum add-log-exp
add-exp-log unpow-prod-down log-div exp-prod exp-diff sqrt-div cube-prod add-cbrt-cube difference-of-squares
flip3-- flip--
cube-div cbrt-div associate-*r/ distribute-lft-out--
cube-mult sub-neg rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 pow1/3 diff-log unpow3 log-pow rem-cbrt-cube flip-+ rem-exp-log sqr-pow
Counts
4 → 75
Calls
4 calls:
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
12.0ms
(exp (log (- (sqrt (+ (* re re) (* im im))) re)))
8.0ms
(cbrt (pow (sqrt (* 2.0 (exp (log (- (sqrt (+ (* re re) (* im im))) re))))) 3))
4.0ms
(sqrt (+ (* re re) (* im im)))

series307.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
51.0ms
(exp (log (- (sqrt (+ (* re re) (* im im))) re)))
175.0ms
(cbrt (pow (sqrt (* 2.0 (exp (log (- (sqrt (+ (* re re) (* im im))) re))))) 3))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify106.0ms

Algorithm
egg-herbie
Counts
87 → 87
Iterations

Useful iterations: 3 (97.0ms)

IterNodesCost
0362856
11179823
23962797
35001789

prune253.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 15.7b

regimes525.0ms

Accuracy

59.3% (8.6b remaining)

Error of 26.8b against oracle of 18.1b and baseline of 39.4b

bsearch103.0ms

Steps
ItersRangePoint
7
2.1468477792754155e-253
3.535306663239892e-252
3.293868608372057e-252
7
2.00818341296373e-296
3.449635196547704e-295
9.194803090293717e-296
7
-6.579287999353623e+83
-2.1130938932944453e+82
-6.485144449769119e+83

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05235
15235

end0.0ms

sample676.0ms

Algorithm
intervals
Results
195.0ms5967×body80valid
132.0ms692×body2560valid
82.0ms514×body1280valid
70.0ms303×body5120valid
36.0ms288×body640valid
20.0ms151×body320valid
5.0ms85×body160valid