Details

Time bar (total: 4.1s)

sample33.0ms

Algorithm
intervals
Results
9.0ms190×body80valid
6.0ms22×body2560valid
3.0ms16×body1280valid
2.0msbody5120valid
2.0msbody640valid
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.7b

Counts
2 → 1

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.4b
(+ (sqrt (+ (* re re) (* im im))) re)
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
pow1
*-un-lft-identity
add-sqr-sqrt add-log-exp
add-cube-cbrt sqrt-div sqrt-prod
add-exp-log sqrt-pow1 flip3-+ add-cbrt-cube flip-+
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log distribute-lft-out
Counts
3 → 40
Calls
3 calls:
8.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)))

series251.0ms

Counts
3 → 9
Calls
3 calls:
169.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify71.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune146.0ms

Filtered
49 candidates to 42 candidates (85.7%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New45449
Fresh000
Picked011
Done000
Total45550

Merged error: 18.9b

Counts
50 → 5

localize11.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (sqrt (+ (* re re) (* im im))) re)
5.0b
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
20.4b
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
20×add-sqr-sqrt
13×*-un-lft-identity
add-exp-log add-cbrt-cube
pow1
add-cube-cbrt sqrt-prod
times-frac associate-/r* add-log-exp difference-of-squares
sqrt-pow1 sqrt-div distribute-lft-out--
cbrt-undiv flip3-- pow1/2 div-exp associate-/r/ flip--
sub-neg rem-sqrt-square frac-2neg flip3-+ diff-log associate-*r/ pow-prod-down prod-exp clear-num cbrt-unprod flip-+ div-inv associate-/l*
Counts
4 → 71
Calls
4 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
10.0ms
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
11.0ms
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series338.0ms

Counts
4 → 12
Calls
4 calls:
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
185.0ms
(sqrt (* 2.0 (/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))))
71.0ms
(/ (* im im) (- (sqrt (+ (* re re) (* im im))) re))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify42.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0369696
11474620
25001611

prune220.0ms

Filtered
83 candidates to 65 candidates (78.3%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New78583
Fresh123
Picked101
Done011
Total80888

Merged error: 13.8b

Counts
88 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (sqrt (+ (* re re) (* im im))) re)
5.0b
(sqrt (* 2.0 (* (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))))))
29.9b
(sqrt (+ (* re re) (* im im)))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
12×pow1 add-sqr-sqrt
*-un-lft-identity sqrt-prod
sqrt-div
add-cube-cbrt add-log-exp
sqrt-pow1
add-exp-log associate-*r/ add-cbrt-cube
pow1/2 pow-prod-down
rem-sqrt-square flip3-+ flip-+ difference-of-squares
frac-times sub-neg flip3-- diff-log associate-*l/ flip-- distribute-lft-out--
Counts
4 → 60
Calls
4 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
21.0ms
(sqrt (* 2.0 (* (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))))))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series312.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(- (sqrt (+ (* re re) (* im im))) re)
196.0ms
(sqrt (* 2.0 (* (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))) (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re))))))
34.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify90.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0294590
1979551
23232539
35001536

prune261.0ms

Filtered
72 candidates to 56 candidates (77.8%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New69372
Fresh156
Picked101
Done011
Total71980

Merged error: 11.4b

Counts
80 → 9

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(* (sqrt 2.0) (fabs (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re)))))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
51×add-sqr-sqrt
36×*-un-lft-identity sqrt-prod
27×times-frac
26×add-cube-cbrt
10×difference-of-squares
associate-/r*
add-exp-log add-cbrt-cube
pow1
associate-*l* add-log-exp
distribute-lft-out--
sqrt-div
associate-*r* associate-/l*
flip3-- associate-/r/ flip-- unswap-sqr
cbrt-undiv sub-neg rem-sqrt-square frac-2neg sqrt-pow1 flip3-+ pow1/2 diff-log div-exp pow-prod-down prod-exp clear-num *-commutative cbrt-unprod flip-+ div-inv
Counts
4 → 105
Calls
4 calls:
10.0ms
(/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
4.0ms
(* (sqrt 2.0) (fabs (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re)))))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series252.0ms

Counts
4 → 12
Calls
4 calls:
126.0ms
(/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
43.0ms
(* (sqrt 2.0) (fabs (/ im (sqrt (- (sqrt (+ (* re re) (* im im))) re)))))
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
117 → 117
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
04111305
113911209
250011185

prune333.0ms

Filtered
117 candidates to 80 candidates (68.4%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1125117
Fresh437
Picked101
Done011
Total1179126

Merged error: 7.9b

Counts
126 → 9

regimes442.0ms

Accuracy

68.1% (9.9b remaining)

Error of 17.6b against oracle of 7.8b and baseline of 38.7b

bsearch148.0ms

Steps
ItersRangePoint
7
7.242250218771691e+34
4.0951139157536485e+36
4.034915440264747e+36
7
-7.083727823843107e-308
8.580811661457357e-308
3.8423606990857e-310
9
-2.1109830459205943e+145
-1.356436873356383e+137
-2.1886437731135835e+143

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
05334
15334

end0.0ms

sample913.0ms

Algorithm
intervals
Results
290.0ms6026×body80valid
202.0ms732×body2560valid
101.0ms293×body5120valid
99.0ms453×body1280valid
45.0ms246×body640valid
21.0ms159×body320valid
8.0ms91×body160valid

Profiling

Loading profile data...