Details

Time bar (total: 3.9s)

sample28.0ms

Algorithm
intervals
Results
6.0ms182×body80valid
4.0ms21×body2560valid
4.0ms15×body5120valid
3.0ms22×body1280valid
1.0ms10×body640valid
0.0msbody320valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 39.9b

localize13.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)
4.0ms
(sqrt (+ (* re re) (* im im)))

series262.0ms

Counts
3 → 9
Calls
3 calls:
175.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify76.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (70.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

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

rewrite56.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))))
21.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series350.0ms

Counts
4 → 12
Calls
4 calls:
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
198.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
68.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify50.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04171078
11461985
25001978

prune290.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
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
0.5b
(+ (sqrt (+ (* re re) (* im im))) re)
6.5b
(sqrt (* 2.0 (* im (/ 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
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series349.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
197.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
0428701
11831618
25002614

prune239.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 6.4b

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite96.0ms

Algorithm
rewrite-expression-head
Rules
12×pow1
add-sqr-sqrt *-un-lft-identity
sqrt-div sqrt-prod
add-cube-cbrt add-log-exp
sqrt-pow1
add-exp-log associate-*r/ add-cbrt-cube
flip3-+ pow1/2 pow-prod-down flip-+
rem-sqrt-square
+-commutative frac-times associate-*l/ sum-log distribute-lft-out
Counts
4 → 57
Calls
4 calls:
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
75.0ms
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
3.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series286.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
164.0ms
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) re))))))
38.0ms
(sqrt (+ (* re re) (* im im)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify132.0ms

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 3 (125.0ms)

IterNodesCost
0321605
11109564
24220551
35002549

prune254.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 3.5b

regimes210.0ms

Accuracy

51.8% (16.8b remaining)

Error of 19.5b against oracle of 2.7b and baseline of 37.6b

bsearch146.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

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07549
18049
28149
38149

end0.0ms

sample691.0ms

Algorithm
intervals
Results
214.0ms6023×body80valid
133.0ms681×body2560valid
77.0ms487×body1280valid
75.0ms303×body5120valid
38.0ms281×body640valid
17.0ms151×body320valid
5.0ms74×body160valid