Details

Time bar (total: 4.1s)

sample25.0ms

Algorithm
intervals
Results
6.0ms191×body80valid
5.0ms25×body2560valid
3.0ms16×body1280valid
2.0ms12×body640valid
1.0msbody5120valid
0.0msbody320valid
0.0msbody160valid

simplify5.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 39.1b

Counts
2 → 1

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))
0.1b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
11×*-un-lft-identity
10×pow1 add-sqr-sqrt
add-cube-cbrt
add-exp-log add-cbrt-cube add-log-exp
flip3-+ sqrt-div associate-*r/ associate-*r* sqrt-prod flip-+
sqrt-pow1 associate-*l*
pow1/2 pow-prod-down distribute-lft-out
+-commutative distribute-rgt-in rem-sqrt-square distribute-lft-in prod-exp sum-log *-commutative cbrt-unprod unswap-sqr
Counts
4 → 63
Calls
4 calls:
9.0ms
(* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))
7.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series306.0ms

Counts
4 → 12
Calls
4 calls:
53.0ms
(* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))
170.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify121.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0305544
11140488
24905474
35001474

prune180.0ms

Filtered
75 candidates to 60 candidates (80.0%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New68775
Fresh000
Picked101
Done000
Total69776

Merged error: 18.1b

Counts
76 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

0.4b
(pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3)
0.7b
(+ (sqrt (+ (* re re) (* im im))) re)
15.6b
(cbrt (pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite26.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:
10.0ms
(pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3)
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(cbrt (pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3))
4.0ms
(sqrt (+ (* re re) (* im im)))

series682.0ms

Counts
4 → 12
Calls
4 calls:
431.0ms
(pow (sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re))) 3)
44.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
172.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
95 → 95
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0433886
11632846
25001828

prune218.0ms

Filtered
95 candidates to 64 candidates (67.4%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New93295
Fresh156
Picked101
Done000
Total957102

Merged error: 18.1b

Counts
102 → 7

localize16.0ms

Local error

Found 4 expressions with local error:

8.7b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
15.7b
(cbrt (pow (sqrt (* 2.0 (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))) 3))
29.3b
(sqrt (+ (* re re) (* im im)))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
14×cbrt-prod
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
sqrt-prod
pow1 sqrt-div add-log-exp
add-exp-log unpow-prod-down flip3-+ cube-prod add-cbrt-cube flip-+
cube-div rem-sqrt-square cbrt-div sqrt-pow1 pow1/2 associate-*r/
+-commutative cube-mult pow1/3 unpow3 sum-log rem-cbrt-cube sqr-pow
Counts
4 → 66
Calls
4 calls:
14.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
7.0ms
(cbrt (pow (sqrt (* 2.0 (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))) 3))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series300.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
176.0ms
(cbrt (pow (sqrt (* 2.0 (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))) 3))
35.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify106.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (95.0ms)

IterNodesCost
03481075
11138999
23944975
35001974

prune250.0ms

Filtered
78 candidates to 61 candidates (78.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New76278
Fresh156
Picked011
Done000
Total77885

Merged error: 18.1b

Counts
85 → 8

localize20.0ms

Local error

Found 4 expressions with local error:

8.7b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
15.7b
(cbrt (pow (sqrt (* 2.0 (exp (log (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))))) 3))
29.3b
(sqrt (+ (* re re) (* im im)))
29.3b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
14×cbrt-prod
11×add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
sqrt-prod
pow1 sqrt-div add-log-exp
add-exp-log unpow-prod-down flip3-+ cube-prod add-cbrt-cube flip-+
cube-div rem-sqrt-square log-div cbrt-div sqrt-pow1 pow1/2 exp-diff associate-*r/
+-commutative cube-mult pow1/3 unpow3 sum-log rem-cbrt-cube sqr-pow
Counts
4 → 66
Calls
4 calls:
15.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
7.0ms
(cbrt (pow (sqrt (* 2.0 (exp (log (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))))) 3))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series301.0ms

Counts
4 → 12
Calls
4 calls:
50.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
177.0ms
(cbrt (pow (sqrt (* 2.0 (exp (log (+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re))))) 3))
35.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify102.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (91.0ms)

IterNodesCost
03461156
111331059
238851047
350021046

prune268.0ms

Filtered
78 candidates to 61 candidates (78.2%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New76278
Fresh066
Picked101
Done011
Total77986

Merged error: 18.1b

Counts
86 → 9

regimes207.0ms

Accuracy

55.5% (9.5b remaining)

Error of 27.3b against oracle of 17.8b and baseline of 39.1b

bsearch125.0ms

Steps
ItersRangePoint
10
1.2902098347601735e+154
3.4696428002669553e+165
1.3638911906358806e+154
7
4.890145485880173e-169
5.979285330824152e-167
9.206347815971593e-169
9
-2.280053641928557e-301
-1.6123238595482796e-307
-1.3029551315611556e-303

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05335
15735
25735

end0.0ms

sample673.0ms

Algorithm
intervals
Results
198.0ms6040×body80valid
150.0ms717×body2560valid
77.0ms487×body1280valid
67.0ms268×body5120valid
34.0ms266×body640valid
14.0ms153×body320valid
4.0ms69×body160valid