Details

Time bar (total: 3.9s)

sample36.0ms

Algorithm
intervals
Results
11.0ms192×body80valid
6.0ms21×body2560valid
3.0ms10×body5120valid
3.0ms13×body1280valid
2.0ms13×body640valid
1.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: 38.9b

Counts
2 → 1

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.4b
(+ (sqrt (+ (* re re) (* im im))) re)
28.6b
(sqrt (+ (* re re) (* im im)))

rewrite24.0ms

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

series286.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
176.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)))

simplify88.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0274428
1986391
23089381
35002379

prune177.0ms

Filtered
63 candidates to 52 candidates (82.5%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New56763
Fresh000
Picked011
Done000
Total56864

Merged error: 17.2b

Counts
64 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
6.5b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
29.6b
(cbrt (+ (* re re) (* im im)))
29.6b
(cbrt (+ (* re re) (* im im)))

rewrite31.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:
13.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
4.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series378.0ms

Counts
4 → 12
Calls
4 calls:
115.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
77.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
93.0ms
(cbrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))

simplify43.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0323928
11214868
25002841

prune274.0ms

Filtered
77 candidates to 66 candidates (85.7%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New74377
Fresh156
Picked101
Done101
Total77885

Merged error: 17.2b

Counts
85 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.8b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
28.6b
(sqrt (+ (* re re) (* im im)))
28.6b
(sqrt (+ (* re re) (* im im)))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
16.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
15.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series154.0ms

Counts
4 → 12
Calls
4 calls:
35.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
50.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune281.0ms

Filtered
136 candidates to 75 candidates (55.1%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New1333136
Fresh077
Picked101
Done000
Total13410144

Merged error: 17.2b

Counts
144 → 10

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(sqrt (* 2.0 (+ (pow (sqrt (sqrt (+ (* re re) (* im im)))) 2) re)))
0.5b
(pow (sqrt (sqrt (+ (* re re) (* im im)))) 2)
6.8b
(+ (pow (sqrt (sqrt (+ (* re re) (* im im)))) 2) re)
28.6b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
13×sqrt-prod
11×pow1 *-un-lft-identity
10×add-sqr-sqrt
add-cube-cbrt unpow-prod-down
sqrt-pow1
add-log-exp
add-exp-log pow-pow
pow1/2 sqrt-div add-cbrt-cube
pow-unpow flip3-+ flip-+
associate-*r/
+-commutative pow-to-exp rem-sqrt-square pow-prod-down pow-exp sum-log sqrt-pow2 distribute-lft-out unpow2 sqr-pow
Counts
4 → 69
Calls
4 calls:
12.0ms
(sqrt (* 2.0 (+ (pow (sqrt (sqrt (+ (* re re) (* im im)))) 2) re)))
6.0ms
(pow (sqrt (sqrt (+ (* re re) (* im im)))) 2)
10.0ms
(+ (pow (sqrt (sqrt (+ (* re re) (* im im)))) 2) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series329.0ms

Counts
4 → 12
Calls
4 calls:
181.0ms
(sqrt (* 2.0 (+ (pow (sqrt (sqrt (+ (* re re) (* im im)))) 2) re)))
63.0ms
(pow (sqrt (sqrt (+ (* re re) (* im im)))) 2)
45.0ms
(+ (pow (sqrt (sqrt (+ (* re re) (* im im)))) 2) re)
40.0ms
(sqrt (+ (* re re) (* im im)))

simplify135.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0346652
11078537
23855517
35001517

prune197.0ms

Filtered
81 candidates to 57 candidates (70.4%)
Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New77481
Fresh279
Picked101
Done000
Total801191

Merged error: 17.1b

Counts
91 → 11

regimes257.0ms

Accuracy

57.7% (9.0b remaining)

Error of 27.1b against oracle of 18.1b and baseline of 39.5b

bsearch94.0ms

Steps
ItersRangePoint
7
3.3840843726061656e+70
7.402926812642739e+71
4.869034385609646e+71
9
4.73015617242873e-254
5.196307842503446e-248
4.796976235399724e-254

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04537
14537

end0.0ms

sample916.0ms

Algorithm
intervals
Results
293.0ms6010×body80valid
194.0ms701×body2560valid
110.0ms490×body1280valid
97.0ms289×body5120valid
48.0ms272×body640valid
20.0ms150×body320valid
8.0ms88×body160valid