Details

Time bar (total: 2.6s)

sample41.0ms

Algorithm
intervals
Results
9.0ms187×body80valid
7.0ms26×body2560valid
6.0ms12×body640valid
3.0ms14×body1280valid
3.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
02215
12215

prune6.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 39.2b

Counts
2 → 1

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)))
1.6b
(+ (sqrt (+ (* re re) (* im im))) re)
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite22.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))
7.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)))

series41.0ms

Counts
4 → 12
Calls
4 calls:
5.0ms
(+ (* re re) (* im im))
24.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify40.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 0 (34.0ms)

IterNodesCost
05282690

prune132.0ms

Filtered
53 candidates to 63 candidates (-18.9%)
Pruning

10 alts after pruning (10 fresh and 0 done)

PrunedKeptTotal
New531063
Fresh000
Picked101
Done000
Total541064

Merged error: 18.1b

Counts
64 → 10

localize12.0ms

Local error

Found 4 expressions with local error:

1.6b
(+ re (sqrt (+ (* re re) (* im im))))
1.6b
(+ re (sqrt (+ (* re re) (* im im))))
29.2b
(sqrt (+ (* re re) (* im im)))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
10×*-un-lft-identity
add-sqr-sqrt add-log-exp
pow1 add-cube-cbrt sqrt-prod
add-exp-log flip3-+ sqrt-div add-cbrt-cube flip-+
+-commutative rem-sqrt-square sqrt-pow1 pow1/2 sum-log distribute-lft-out
Counts
4 → 54
Calls
4 calls:
5.0ms
(+ re (sqrt (+ (* re re) (* im im))))
5.0ms
(+ re (sqrt (+ (* re re) (* im im))))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series26.0ms

Counts
4 → 12
Calls
4 calls:
8.0ms
(+ re (sqrt (+ (* re re) (* im im))))
7.0ms
(+ re (sqrt (+ (* re re) (* im im))))
5.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify63.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 0 (57.0ms)

IterNodesCost
05373656

prune109.0ms

Filtered
52 candidates to 66 candidates (-26.9%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New66066
Fresh099
Picked011
Done000
Total661076

Merged error: 18.1b

Counts
76 → 10

localize16.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
6.7b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
30.1b
(cbrt (+ (* re re) (* im im)))
30.1b
(cbrt (+ (* re re) (* im im)))

rewrite25.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:
8.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)
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series103.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
30.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
20.0ms
(cbrt (+ (* re re) (* im im)))
20.0ms
(cbrt (+ (* re re) (* im im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 0 (52.0ms)

IterNodesCost
049831384
149831384

prune131.0ms

Filtered
61 candidates to 77 candidates (-26.2%)
Pruning

10 alts after pruning (9 fresh and 1 done)

PrunedKeptTotal
New74377
Fresh268
Picked101
Done011
Total771087

Merged error: 18.1b

Counts
87 → 10

localize21.0ms

Local error

Found 4 expressions with local error:

5.0b
(exp (log (cbrt (+ (* re re) (* im im)))))
16.2b
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
30.1b
(cbrt (+ (* re re) (* im im)))
30.1b
(cbrt (+ (* re re) (* im im)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
cbrt-prod add-sqr-sqrt add-cube-cbrt *-un-lft-identity
cbrt-div log-prod exp-sum add-log-exp
pow1 exp-prod
add-exp-log flip3-+ add-cbrt-cube flip-+
pow1/3
log-div exp-diff log-pow
+-commutative sum-log rem-exp-log
Counts
4 → 58
Calls
4 calls:
5.0ms
(exp (log (cbrt (+ (* re re) (* im im)))))
11.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
3.0ms
(cbrt (+ (* re re) (* im im)))
4.0ms
(cbrt (+ (* re re) (* im im)))

series90.0ms

Counts
4 → 12
Calls
4 calls:
20.0ms
(exp (log (cbrt (+ (* re re) (* im im)))))
30.0ms
(+ (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (exp (log (cbrt (+ (* re re) (* im im))))))) re)
20.0ms
(cbrt (+ (* re re) (* im im)))
20.0ms
(cbrt (+ (* re re) (* im im)))

simplify68.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 0 (60.0ms)

IterNodesCost
04908962
14908962

prune105.0ms

Filtered
54 candidates to 70 candidates (-29.6%)
Pruning

11 alts after pruning (10 fresh and 1 done)

PrunedKeptTotal
New67370
Fresh178
Picked101
Done011
Total691180

Merged error: 18.1b

Counts
80 → 11

regimes355.0ms

Accuracy

58.7% (9.0b remaining)

Error of 26.2b against oracle of 17.2b and baseline of 38.9b

bsearch45.0ms

Steps
ItersRangePoint
5
4.9831912547538184e+91
1.3655005271697367e+92
1.334568807248231e+92
9
-7.676761036242019e-305
3.3654627424431923e-307
1.220048955493332e-308
8
-9.68551370084772e-266
-3.1195446902457074e-268
-7.213823237359036e-267

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
04876
14876

end0.0ms

sample995.0ms

Algorithm
intervals
Results
290.0ms6022×body80valid
192.0ms666×body2560valid
111.0ms487×body1280valid
94.0ms283×body5120valid
52.0ms293×body640valid
23.0ms169×body320valid
7.0ms80×body160valid

Profiling

Loading profile data...