Details

Time bar (total: 4.2s)

sample40.0ms

Algorithm
intervals
Results
13.0ms196×body80valid
8.0ms23×body2560valid
4.0ms16×body640valid
3.0ms10×body1280valid
2.0msbody5120valid
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: 40.7b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite40.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))
15.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series282.0ms

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

simplify90.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (85.0ms)

IterNodesCost
0258459
1938422
23098412
35001410

prune200.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 19.5b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(- (sqrt (+ (* re re) (* im im))) re)
0.4b
(* (sqrt (- (sqrt (+ (* re re) (* im im))) re)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
32.7b
(sqrt (+ (* re re) (* im im)))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite112.0ms

Algorithm
rewrite-expression-head
Rules
56×add-sqr-sqrt
51×sqrt-prod
30×*-un-lft-identity
21×pow1
16×sqrt-div
15×swap-sqr
14×add-cube-cbrt difference-of-squares
10×sqrt-pow1 pow1/2
associate-*r* associate-*l*
flip3-- flip-- distribute-lft-out--
add-exp-log add-cbrt-cube add-log-exp
pow-prod-up
frac-times unswap-sqr
pow-prod-down pow-sqr
rem-sqrt-square flip3-+ associate-*r/ associate-*l/ flip-+
pow2 sub-neg pow-plus sqrt-unprod diff-log prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 115
Calls
4 calls:
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
82.0ms
(* (sqrt (- (sqrt (+ (* re re) (* im im))) re)) (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:
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
49.0ms
(* (sqrt (- (sqrt (+ (* re re) (* im im))) re)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
34.0ms
(sqrt (+ (* re re) (* im im)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify173.0ms

Algorithm
egg-herbie
Counts
127 → 127
Iterations

Useful iterations: 3 (161.0ms)

IterNodesCost
02311095
17631015
24107975
35002952

prune311.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 19.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.6b
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
32.7b
(sqrt (+ (* re re) (* im im)))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite58.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:
26.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
17.0ms
(- (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
7.0ms
(sqrt (+ (* re re) (* im im)))

series155.0ms

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

simplify44.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (32.0ms)

IterNodesCost
02611112
1935975
25001951

prune302.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 19.5b

localize16.0ms

Local error

Found 4 expressions with local error:

0.7b
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
11.0b
(- (* (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)) re)
32.7b
(sqrt (+ (* re re) (* im im)))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite43.0ms

Algorithm
rewrite-expression-head
Rules
42×sqrt-prod
17×add-sqr-sqrt
15×add-cube-cbrt *-un-lft-identity
12×unpow-prod-down cube-prod
11×sqrt-pow1
10×pow1 sqrt-div
pow-pow
add-log-exp
add-exp-log pow1/2 add-cbrt-cube
pow-unpow flip3-+ flip-+
cube-div rem-sqrt-square
cube-mult pow-to-exp sub-neg flip3-- diff-log unpow3 pow-exp sqrt-pow2 flip-- rem-cube-cbrt sqr-pow
Counts
4 → 92
Calls
4 calls:
8.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
26.0ms
(- (* (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series230.0ms

Counts
4 → 12
Calls
4 calls:
110.0ms
(pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)
45.0ms
(- (* (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) (pow (sqrt (sqrt (sqrt (+ (* re re) (* im im))))) 3)) re)
40.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
104 → 104
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
03801007
11278900
25001858

prune311.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 19.5b

regimes228.0ms

Accuracy

50.7% (10.4b remaining)

Error of 28.0b against oracle of 17.5b and baseline of 38.7b

bsearch160.0ms

Steps
ItersRangePoint
8
2.555487769507404e-297
9.204367104374754e-295
2.3367351856997066e-296
9
-4.0298841896469914e-94
-3.744556309116812e-103
-3.8099669373079583e-103
10
-8.777387788220042e+125
-4.2027485674795273e+114
-8.15615961666859e+125

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05736
16136
26136

end0.0ms

sample1.2s

Algorithm
intervals
Results
423.0ms5992×body80valid
253.0ms708×body2560valid
149.0ms517×body1280valid
120.0ms278×body5120valid
64.0ms272×body640valid
26.0ms150×body320valid
10.0ms83×body160valid