Details

Time bar (total: 3.7s)

sample27.0ms

Algorithm
intervals
Results
6.0ms187×body80valid
3.0ms24×body1280valid
3.0ms15×body2560valid
2.0ms10×body5120valid
1.0ms10×body640valid
1.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: 38.2b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite57.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-log-exp
*-un-lft-identity
pow1 add-cube-cbrt sqrt-prod
add-exp-log add-cbrt-cube
flip3-+ sqrt-div flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square flip3-- sqrt-pow1 pow1/2 diff-log sum-log flip-- distribute-lft-out--
Counts
3 → 41
Calls
3 calls:
8.0ms
(+ (* re re) (* im im))
41.0ms
(- (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series105.0ms

Counts
3 → 9
Calls
3 calls:
25.0ms
(+ (* re re) (* im im))
42.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify61.0ms

Algorithm
egg-herbie
Counts
50 → 50
Iterations

Useful iterations: 3 (56.0ms)

IterNodesCost
0172305
1661282
21936278
35002276

prune139.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 16.8b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
5.7b
(exp (log (sqrt (+ (* re re) (* im im)))))
16.5b
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite88.0ms

Algorithm
rewrite-expression-head
Rules
15×add-sqr-sqrt
10×*-un-lft-identity
add-cube-cbrt log-prod exp-sum add-log-exp
pow1 sqrt-prod
exp-prod
add-exp-log sqrt-div add-cbrt-cube
flip3-+ log-pow flip-+ difference-of-squares
log-div sqrt-pow1 pow1/2 exp-diff
+-commutative sub-neg rem-sqrt-square flip3-- diff-log sum-log flip-- rem-exp-log distribute-lft-out--
Counts
4 → 64
Calls
4 calls:
8.0ms
(+ (* re re) (* im im))
10.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
61.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series139.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(+ (* re re) (* im im))
35.0ms
(exp (log (sqrt (+ (* re re) (* im im)))))
43.0ms
(- (exp (log (sqrt (+ (* re re) (* im im))))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify65.0ms

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 3 (59.0ms)

IterNodesCost
0223519
1737467
22078451
35001442

prune202.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 16.7b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(+ re (sqrt (+ (* re re) (* im im))))
4.7b
(sqrt (* 2.0 (/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))))
21.9b
(/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite82.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:
14.0ms
(+ re (sqrt (+ (* re re) (* im im))))
21.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))))
33.0ms
(/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))
10.0ms
(sqrt (+ (* re re) (* im im)))

series322.0ms

Counts
4 → 12
Calls
4 calls:
42.0ms
(+ re (sqrt (+ (* re re) (* im im))))
184.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))))
63.0ms
(/ (pow im 2) (+ re (sqrt (+ (* re re) (* im im)))))
33.0ms
(sqrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
04171079
11461986
25001978

prune288.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 5.4b

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ im (/ (+ re (sqrt (+ (* re re) (* im im)))) im))
0.3b
(+ re (sqrt (+ (* re re) (* im im))))
4.7b
(sqrt (* 2.0 (/ im (/ (+ re (sqrt (+ (* re re) (* im im)))) im))))
28.2b
(sqrt (+ (* re re) (* im im)))

rewrite86.0ms

Algorithm
rewrite-expression-head
Rules
96×times-frac
80×*-un-lft-identity
55×add-sqr-sqrt
54×add-cube-cbrt
16×associate-/r*
13×distribute-lft-out
add-exp-log add-cbrt-cube
pow1
add-log-exp
div-inv
sqrt-prod
cbrt-undiv sqrt-pow1 sqrt-div div-exp associate-/l*
flip3-+ pow1/2 flip-+
+-commutative rem-sqrt-square frac-2neg associate-*r/ pow-prod-down clear-num sum-log associate-/r/
Counts
4 → 121
Calls
4 calls:
36.0ms
(/ im (/ (+ re (sqrt (+ (* re re) (* im im)))) im))
15.0ms
(+ re (sqrt (+ (* re re) (* im im))))
22.0ms
(sqrt (* 2.0 (/ im (/ (+ re (sqrt (+ (* re re) (* im im)))) im))))
8.0ms
(sqrt (+ (* re re) (* im im)))

series327.0ms

Counts
4 → 12
Calls
4 calls:
64.0ms
(/ im (/ (+ re (sqrt (+ (* re re) (* im im)))) im))
45.0ms
(+ re (sqrt (+ (* re re) (* im im))))
184.0ms
(sqrt (* 2.0 (/ im (/ (+ re (sqrt (+ (* re re) (* im im)))) im))))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify75.0ms

Algorithm
egg-herbie
Counts
133 → 133
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
05751477
126261375
250011366

prune318.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 2.8b

regimes317.0ms

Accuracy

45.6% (18.4b remaining)

Error of 22.6b against oracle of 4.2b and baseline of 38.0b

bsearch188.0ms

Steps
ItersRangePoint
8
1.1807101732312691e+142
5.3555028086657875e+144
5.301975457738901e+144
8
2.8505148529471227e-220
1.1324871769035144e-217
3.315327059634813e-219
8
-4.5513920484886933e-281
-4.293119643674365e-284
-2.3932815010602277e-282
6
-7.3832476150467864e-180
-8.505695752111334e-181
-8.861544571423392e-181
8
-3.72436965410306e+139
-1.0540944006331587e+136
-1.5057522058365376e+136

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07840
18340
28440
38440

end0.0ms

sample711.0ms

Algorithm
intervals
Results
194.0ms6046×body80valid
123.0ms661×body2560valid
82.0ms510×body1280valid
77.0ms300×body5120valid
35.0ms273×body640valid
12.0ms134×body320valid
5.0ms76×body160valid