Details

Time bar (total: 6.1s)

sample50.0ms

Algorithm
intervals
Results
12.0ms182×body80valid
9.0ms22×body1280valid
8.0ms21×body2560valid
7.0ms15×body5120valid
2.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune6.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 39.9b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.6b
(- (sqrt (+ (* re re) (* im im))) re)
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
11.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series34.0ms

Counts
3 → 9
Calls
3 calls:
20.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

simplify73.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (68.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune414.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 18.1b

localize13.0ms

Local error

Found 4 expressions with local error:

0.5b
(+ (sqrt (+ (* re re) (* im im))) re)
6.5b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
20.2b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite55.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:
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
15.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
20.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series44.0ms

Counts
4 → 12
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
21.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
11.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify46.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
04171094
11519985
25002975

prune871.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 6.7b

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
0.5b
(+ (sqrt (+ (* re re) (* im im))) re)
6.5b
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite96.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:
42.0ms
(* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
14.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
33.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))
3.0ms
(sqrt (+ (* re re) (* im im)))

series58.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
28.0ms
(sqrt (* 2.0 (* (fabs im) (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify55.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
0463834
12015732
25001726

prune824.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 6.4b

localize18.0ms

Local error

Found 4 expressions with local error:

5.2b
(sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
6.5b
(sqrt (* 2.0 (* (* (sqrt (fabs im)) (sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))) (* (sqrt (fabs im)) (sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))))
29.9b
(sqrt (+ (* re re) (* im im)))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite314.0ms

Algorithm
rewrite-expression-head
Rules
26×pow1
25×sqrt-prod
20×*-un-lft-identity
19×add-sqr-sqrt
14×add-cube-cbrt
13×times-frac pow-prod-down
12×sqrt-div
sqrt-pow1
associate-*r/
add-exp-log rem-sqrt-square pow1/2 add-cbrt-cube add-log-exp
flip3-+ flip-+ distribute-lft-out
associate-/r/
frac-times associate-*l/ div-inv
Counts
4 → 78
Calls
4 calls:
20.0ms
(sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
285.0ms
(sqrt (* 2.0 (* (* (sqrt (fabs im)) (sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))) (* (sqrt (fabs im)) (sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))))
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))

series59.0ms

Counts
4 → 12
Calls
4 calls:
21.0ms
(sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))
26.0ms
(sqrt (* 2.0 (* (* (sqrt (fabs im)) (sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))) (* (sqrt (fabs im)) (sqrt (/ (fabs im) (+ (sqrt (+ (* re re) (* im im))) re)))))))
6.0ms
(sqrt (+ (* re re) (* im im)))
6.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
90 → 90
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
04961049
11940980
25002970

prune1.3s

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 3.8b

regimes392.0ms

Accuracy

52% (16.8b remaining)

Error of 19.8b against oracle of 3.1b and baseline of 38.0b

bsearch93.0ms

Steps
ItersRangePoint
7
2.3676647091815954e+142
5.462432632406119e+143
5.394476249583853e+143
5
-8.482171429905235e-305
-3.7894152148416054e-305
-8.055586096901738e-305
7
-3.0066066471288133e-266
-7.005394620018514e-268
-7.36720432236372e-267
7
-4.2189696159604594e+122
-1.4140661128715776e+121
-2.463228932581569e+122

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07553
18053
28153
38153

end0.0ms

sample1.2s

Algorithm
intervals
Results
378.0ms6023×body80valid
262.0ms681×body2560valid
149.0ms487×body1280valid
134.0ms303×body5120valid
67.0ms281×body640valid
27.0ms151×body320valid
9.0ms74×body160valid