Details

Time bar (total: 3.6s)

sample25.0ms

Algorithm
intervals
Results
7.0ms199×body80valid
4.0ms20×body2560valid
3.0ms14×body5120valid
2.0ms10×body1280valid
1.0msbody640valid
0.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: 36.2b

Counts
2 → 1

localize13.0ms

Local error

Found 2 expressions with local error:

0.4b
(+ (sqrt (+ (* re re) (* im im))) re)
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
*-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
2 → 27
Calls
2 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series84.0ms

Counts
2 → 6
Calls
2 calls:
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify79.0ms

Algorithm
egg-herbie
Counts
33 → 33
Iterations

Useful iterations: 3 (27.0ms)

IterNodesCost
0141198
1358186
2866182
32557181
45001181

prune105.0ms

Filtered
33 candidates to 29 candidates (87.9%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New28533
Fresh000
Picked011
Done000
Total28634

Merged error: 15.5b

Counts
34 → 6

localize12.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
6.0b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
27.8b
(sqrt (+ (* re re) (* im im)))
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite44.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
16.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
15.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series159.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
48.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify47.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
02671096
1974974
25001950

prune279.0ms

Filtered
136 candidates to 73 candidates (53.7%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1342136
Fresh224
Picked011
Done011
Total1366142

Merged error: 15.5b

Counts
142 → 6

localize13.0ms

Local error

Found 4 expressions with local error:

1.0b
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
4.9b
(sqrt (* 2.0 (/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))
20.9b
(/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
13×add-cube-cbrt *-un-lft-identity
times-frac
pow1
add-exp-log add-cbrt-cube add-log-exp
flip3-+ sqrt-prod flip-+
sqrt-pow1 sqrt-div associate-/r* associate-/l*
mul-1-neg pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative rem-sqrt-square frac-2neg associate-*r/ div-exp unsub-neg pow-prod-down clear-num sum-log div-inv
Counts
4 → 71
Calls
4 calls:
7.0ms
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
11.0ms
(sqrt (* 2.0 (/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))
12.0ms
(/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series354.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
192.0ms
(sqrt (* 2.0 (/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))
73.0ms
(/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify60.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (52.0ms)

IterNodesCost
0417853
11895747
25002736

prune260.0ms

Filtered
83 candidates to 71 candidates (85.5%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New77683
Fresh213
Picked101
Done112
Total81889

Merged error: 12.7b

Counts
89 → 8

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ im (/ (+ (sqrt (+ (* re re) (* im im))) (* -1 re)) im))
1.0b
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
4.9b
(sqrt (* 2.0 (* 1 (/ im (/ (+ (sqrt (+ (* re re) (* im im))) (* -1 re)) im)))))
27.8b
(sqrt (+ (* re re) (* im im)))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
75×times-frac
48×add-sqr-sqrt
47×add-cube-cbrt *-un-lft-identity
13×associate-/r*
11×pow1
add-exp-log add-cbrt-cube
add-log-exp
div-inv
sqrt-pow1 sqrt-prod
cbrt-undiv sqrt-div div-exp pow-prod-down associate-/l*
mul-1-neg flip3-+ pow1/2 associate-*r/ flip-+
+-commutative rem-sqrt-square frac-2neg unsub-neg clear-num sum-log associate-/r/
Counts
4 → 111
Calls
4 calls:
9.0ms
(/ im (/ (+ (sqrt (+ (* re re) (* im im))) (* -1 re)) im))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
15.0ms
(sqrt (* 2.0 (* 1 (/ im (/ (+ (sqrt (+ (* re re) (* im im))) (* -1 re)) im)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series360.0ms

Counts
4 → 12
Calls
4 calls:
76.0ms
(/ im (/ (+ (sqrt (+ (* re re) (* im im))) (* -1 re)) im))
46.0ms
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
201.0ms
(sqrt (* 2.0 (* 1 (/ im (/ (+ (sqrt (+ (* re re) (* im im))) (* -1 re)) im)))))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify92.0ms

Algorithm
egg-herbie
Counts
123 → 123
Iterations

Useful iterations: 2 (78.0ms)

IterNodesCost
06001515
130151400
250021396

prune365.0ms

Filtered
123 candidates to 97 candidates (78.9%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1203123
Fresh426
Picked011
Done011
Total1247131

Merged error: 10.6b

Counts
131 → 7

regimes326.0ms

Accuracy

61.6% (10.1b remaining)

Error of 22.1b against oracle of 12.0b and baseline of 38.3b

bsearch116.0ms

Steps
ItersRangePoint
6
1.4561095946501342e+101
1.441855190865374e+102
1.4134443734559052e+102
8
4.782480876373509e-275
5.044371448511112e-272
5.292717122801934e-275
6
-3.245969229886643e+141
-4.4689590379865175e+140
-2.97507766284173e+141

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
06331
16731
26731

end0.0ms

sample690.0ms

Algorithm
intervals
Results
198.0ms5977×body80valid
158.0ms755×body2560valid
76.0ms312×body5120valid
72.0ms461×body1280valid
35.0ms285×body640valid
14.0ms150×body320valid
4.0ms60×body160valid