Details

Time bar (total: 4.5s)

sample27.0ms

Algorithm
intervals
Results
6.0ms183×body80valid
5.0ms28×body2560valid
3.0ms12×body5120valid
2.0ms15×body1280valid
1.0ms10×body640valid
0.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 42.5b

localize10.0ms

Local error

Found 3 expressions with local error:

0.3b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
32.6b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
pow1
*-un-lft-identity
add-sqr-sqrt add-log-exp
add-cube-cbrt sqrt-div sqrt-prod
add-exp-log sqrt-pow1 flip3-+ add-cbrt-cube flip-+
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log distribute-lft-out
Counts
3 → 40
Calls
3 calls:
14.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series263.0ms

Counts
3 → 9
Calls
3 calls:
178.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify67.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (62.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune150.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 21.1b

localize17.0ms

Local error

Found 4 expressions with local error:

0.3b
(pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3)
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
16.5b
(cbrt (pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3))
32.6b
(sqrt (+ (* re re) (* im im)))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
14×cbrt-prod
13×*-un-lft-identity
12×add-sqr-sqrt
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 flip3-+ associate-*r/ flip-+
pow-unpow sqrt-pow1
cube-mult cbrt-div pow1/2 unpow3 sqr-pow
+-commutative pow-to-exp rem-sqrt-square pow1/3 pow-prod-down pow-exp sum-log sqrt-pow2 rem-cbrt-cube distribute-lft-out rem-cube-cbrt
Counts
4 → 83
Calls
4 calls:
12.0ms
(pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3)
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
3.0ms
(cbrt (pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3))
3.0ms
(sqrt (+ (* re re) (* im im)))

series710.0ms

Counts
4 → 12
Calls
4 calls:
448.0ms
(pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3)
45.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
182.0ms
(cbrt (pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
95 → 95
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
0433886
11632846
25001828

prune240.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 21.1b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
7.2b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
33.7b
(cbrt (+ (* re re) (* im im)))
33.7b
(cbrt (+ (* re re) (* im im)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ flip-+
associate-*l* unswap-sqr
pow1/3 sqrt-div associate-*r/
+-commutative pow-prod-down prod-exp sum-log *-commutative cbrt-unprod
Counts
4 → 65
Calls
4 calls:
12.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
6.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
2.0ms
(cbrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))

series568.0ms

Counts
4 → 12
Calls
4 calls:
300.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
81.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
93.0ms
(cbrt (+ (* re re) (* im im)))
94.0ms
(cbrt (+ (* re re) (* im im)))

simplify42.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0323928
11214868
25002841

prune284.0ms

Pruning

11 alts after pruning (8 fresh and 3 done)

Merged error: 21.1b

localize17.0ms

Local error

Found 4 expressions with local error:

6.2b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
32.6b
(sqrt (+ (* re re) (* im im)))
32.6b
(sqrt (+ (* re re) (* im im)))
33.7b
(cbrt (+ (* re re) (* im im)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod add-log-exp
add-exp-log flip3-+ sqrt-div add-cbrt-cube flip-+
cbrt-prod
rem-sqrt-square cbrt-div sqrt-pow1 pow1/2
+-commutative pow1/3 sum-log
Counts
4 → 54
Calls
4 calls:
28.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))

series241.0ms

Counts
4 → 12
Calls
4 calls:
76.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))

simplify97.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (87.0ms)

IterNodesCost
0274690
1967619
23189582
35002580

prune272.0ms

Pruning

11 alts after pruning (8 fresh and 3 done)

Merged error: 21.1b

regimes526.0ms

Accuracy

59.3% (8.3b remaining)

Error of 26.3b against oracle of 18.1b and baseline of 38.4b

bsearch83.0ms

Steps
ItersRangePoint
8
1.704068108985656e+134
2.397866045703051e+137
1.164285257168749e+137
9
-4.2891484322939016e-225
-5.158097903870568e-234
-5.303374603508321e-234

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03722
13722

end0.0ms

sample666.0ms

Algorithm
intervals
Results
196.0ms6012×body80valid
125.0ms635×body2560valid
79.0ms337×body5120valid
72.0ms466×body1280valid
42.0ms299×body640valid
17.0ms147×body320valid
6.0ms104×body160valid