Details

Time bar (total: 4.1s)

sample26.0ms

Algorithm
intervals
Results
7.0ms197×body80valid
3.0ms20×body1280valid
3.0ms16×body2560valid
2.0ms10×body5120valid
1.0msbody320valid
1.0msbody640valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

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: 35.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.7b
(- (sqrt (+ (* re re) (* im im))) re)
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite26.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:
7.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)))

series317.0ms

Counts
4 → 12
Calls
4 calls:
27.0ms
(+ (* re re) (* im im))
185.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
68.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify92.0ms

Algorithm
egg-herbie
Counts
66 → 66
Iterations

Useful iterations: 3 (86.0ms)

IterNodesCost
0258459
1938422
23098412
35001410

prune185.0ms

Filtered
66 candidates to 52 candidates (78.8%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New61566
Fresh000
Picked101
Done000
Total62567

Merged error: 16.4b

Counts
67 → 5

localize13.0ms

Local error

Found 4 expressions with local error:

1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
5.2b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
21.0b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity
32×times-frac
25×add-sqr-sqrt
24×add-cube-cbrt
15×unpow-prod-down
10×distribute-lft-out
add-exp-log
pow1 associate-/l*
add-cbrt-cube add-log-exp
unpow2 sqr-pow
associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div div-exp flip-+
pow1/2 associate-/r/
cbrt-undiv +-commutative pow-to-exp rem-sqrt-square frac-2neg associate-*r/ pow-prod-down pow-exp clear-num sum-log div-inv
Counts
4 → 99
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
13.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series366.0ms

Counts
4 → 12
Calls
4 calls:
52.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
206.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
71.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
04171078
11461985
25001978

prune298.0ms

Filtered
111 candidates to 77 candidates (69.4%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New1056111
Fresh134
Picked101
Done000
Total1079116

Merged error: 6.1b

Counts
116 → 9

localize13.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
1.1b
(+ (sqrt (+ (* re re) (* im im))) re)
5.2b
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
20×add-sqr-sqrt
18×associate-*r*
14×add-cube-cbrt
13×pow1 times-frac
add-exp-log add-cbrt-cube
add-log-exp
sqrt-pow1 pow-prod-down sqrt-prod distribute-lft-out
flip3-+ sqrt-div associate-*r/ associate-*l* flip-+
pow1/2 prod-exp associate-/r/ cbrt-unprod unswap-sqr
cbrt-undiv +-commutative rem-sqrt-square div-exp sum-log *-commutative div-inv
Counts
4 → 77
Calls
4 calls:
16.0ms
(* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series336.0ms

Counts
4 → 12
Calls
4 calls:
82.0ms
(* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
170.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify57.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
0463834
12015732
25001726

prune284.0ms

Filtered
89 candidates to 70 candidates (78.7%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New86389
Fresh448
Picked011
Done000
Total90898

Merged error: 5.2b

Counts
98 → 8

localize23.0ms

Local error

Found 4 expressions with local error:

5.2b
(sqrt (* 2.0 (* (* (fabs im) (/ (* (cbrt (fabs im)) (cbrt (fabs im))) (* (cbrt (+ (sqrt (+ (* re re) (* im im))) re)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))) (/ (cbrt (fabs im)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))))
27.5b
(sqrt (+ (* re re) (* im im)))
27.5b
(sqrt (+ (* re re) (* im im)))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
17×pow1
10×add-sqr-sqrt sqrt-prod
sqrt-div
add-cube-cbrt *-un-lft-identity sqrt-pow1
associate-*r/ pow-prod-down
add-exp-log pow1/2 add-cbrt-cube add-log-exp
rem-sqrt-square flip3-+ flip-+
frac-times associate-*l/
Counts
4 → 61
Calls
4 calls:
37.0ms
(sqrt (* 2.0 (* (* (fabs im) (/ (* (cbrt (fabs im)) (cbrt (fabs im))) (* (cbrt (+ (sqrt (+ (* re re) (* im im))) re)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))) (/ (cbrt (fabs im)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series289.0ms

Counts
4 → 12
Calls
4 calls:
171.0ms
(sqrt (* 2.0 (* (* (fabs im) (/ (* (cbrt (fabs im)) (cbrt (fabs im))) (* (cbrt (+ (sqrt (+ (* re re) (* im im))) re)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))) (/ (cbrt (fabs im)) (cbrt (+ (sqrt (+ (* re re) (* im im))) re))))))
37.0ms
(sqrt (+ (* re re) (* im im)))
43.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify133.0ms

Algorithm
egg-herbie
Counts
73 → 73
Iterations

Useful iterations: 3 (124.0ms)

IterNodesCost
0300802
11062750
24528741
35001725

prune323.0ms

Filtered
73 candidates to 60 candidates (82.2%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New72173
Fresh066
Picked101
Done011
Total73881

Merged error: 5.2b

Counts
81 → 8

regimes211.0ms

Accuracy

48% (18.2b remaining)

Error of 23.6b against oracle of 5.4b and baseline of 40.4b

bsearch242.0ms

Steps
ItersRangePoint
4
1.5549168953101855e+143
2.483185623213712e+143
1.7411669279487403e+143
8
2.033804478772488e-16
1.0574984813846425e-13
2.5127945524088855e-16
6
4.047275585948234e-45
4.151680347800628e-44
3.614486343345858e-44
6
1.6552168713535222e-160
7.56737574009597e-160
5.737581771432969e-160
9
-1.7961890248789646e-153
-4.991866581371744e-162
-6.997538802703971e-155
8
-1.8924915151658963e+19
-8893382635004147.0
-4.2621787475413843e+17

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07758
18258
28358
38358

end0.0ms

sample687.0ms

Algorithm
intervals
Results
204.0ms6006×body80valid
147.0ms717×body2560valid
78.0ms481×body1280valid
69.0ms280×body5120valid
37.0ms273×body640valid
14.0ms147×body320valid
6.0ms96×body160valid