Details

Time bar (total: 4.1s)

sample27.0ms

Algorithm
intervals
Results
6.0ms177×body80valid
5.0ms26×body2560valid
3.0ms20×body1280valid
2.0msbody5120valid
1.0ms10×body640valid
1.0msbody320valid
0.0msbody160valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 40.8b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* re re) (* im im))
1.8b
(+ (sqrt (+ (* re re) (* im im))) re)
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
*-un-lft-identity
add-sqr-sqrt
pow1 add-cube-cbrt
add-exp-log flip3-+ sqrt-prod add-cbrt-cube flip-+
+-commutative sqrt-div sum-log
rem-sqrt-square sqrt-pow1 pow1/2 distribute-lft-out
Counts
3 → 38
Calls
3 calls:
3.0ms
(+ (* re re) (* im im))
16.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series110.0ms

Counts
3 → 9
Calls
3 calls:
26.0ms
(+ (* re re) (* im im))
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify64.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (59.0ms)

IterNodesCost
0178275
1689252
22017248
35001246

prune145.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 18.0b

localize17.0ms

Local error

Found 4 expressions with local error:

0.5b
(- (sqrt (+ (* re re) (* im im))) re)
6.3b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
20.4b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite61.0ms

Algorithm
rewrite-expression-head
Rules
69×add-sqr-sqrt
48×*-un-lft-identity times-frac
28×add-cube-cbrt
21×unpow-prod-down
20×difference-of-squares
14×sqrt-prod
10×distribute-lft-out--
add-exp-log
pow1 associate-/l*
unpow2 sqr-pow
associate-/r* add-cbrt-cube add-log-exp
sqrt-pow1 sqrt-div div-exp
flip3-- pow1/2 associate-/r/ flip--
cbrt-undiv pow-to-exp sub-neg rem-sqrt-square frac-2neg flip3-+ diff-log associate-*r/ pow-prod-down pow-exp clear-num flip-+ div-inv
Counts
4 → 120
Calls
4 calls:
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
14.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)))

series354.0ms

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

simplify54.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04471428
115821323
250011313

prune307.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 13.8b

localize15.0ms

Local error

Found 4 expressions with local error:

0.0b
(/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
6.3b
(sqrt (* 2.0 (/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite87.0ms

Algorithm
rewrite-expression-head
Rules
298×times-frac
232×add-sqr-sqrt
181×*-un-lft-identity
131×add-cube-cbrt
69×unpow-prod-down
50×difference-of-squares
29×sqrt-prod
25×distribute-lft-out--
23×sqr-pow
22×associate-/r*
17×add-exp-log
div-exp add-cbrt-cube div-inv
pow1
associate-/l*
add-log-exp
cbrt-undiv sqrt-pow1 sqrt-div
pow-to-exp pow1/2 pow-exp
sub-neg rem-sqrt-square flip3-- frac-2neg flip3-+ diff-log associate-*r/ pow-prod-down clear-num associate-/r/ flip-- flip-+
Counts
4 → 244
Calls
4 calls:
25.0ms
(/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
23.0ms
(sqrt (* 2.0 (/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
3.0ms
(sqrt (+ (* re re) (* im im)))

series350.0ms

Counts
4 → 12
Calls
4 calls:
74.0ms
(/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))
50.0ms
(- (sqrt (+ (* re re) (* im im))) re)
193.0ms
(sqrt (* 2.0 (/ (pow im (/ 2 2)) (/ (- (sqrt (+ (* re re) (* im im))) re) im))))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify144.0ms

Algorithm
egg-herbie
Counts
256 → 256
Iterations

Useful iterations: 1 (20.0ms)

IterNodesCost
09123659
142803320
250013320

prune443.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 10.9b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (/ (pow im 1) (- (sqrt (+ (* re re) (* im im))) re)) im)
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
6.3b
(sqrt (* 2.0 (* (/ (pow im 1) (- (sqrt (+ (* re re) (* im im))) re)) im)))
29.2b
(sqrt (+ (* re re) (* im im)))

rewrite127.0ms

Algorithm
rewrite-expression-head
Rules
69×add-sqr-sqrt
48×associate-*l*
45×times-frac
42×*-un-lft-identity
26×add-cube-cbrt
19×unpow-prod-down
16×difference-of-squares
14×add-exp-log
13×pow1
12×sqrt-prod
add-cbrt-cube
distribute-lft-out--
sqr-pow
add-log-exp
sqrt-pow1 pow-prod-down prod-exp unswap-sqr
sqrt-div div-exp associate-*r*
flip3-- pow1/2 associate-*l/ associate-/r/ flip-- cbrt-unprod
cbrt-undiv pow-to-exp sub-neg rem-sqrt-square flip3-+ diff-log associate-*r/ pow-exp *-commutative flip-+ div-inv
Counts
4 → 114
Calls
4 calls:
54.0ms
(* (/ (pow im 1) (- (sqrt (+ (* re re) (* im im))) re)) im)
21.0ms
(- (sqrt (+ (* re re) (* im im))) re)
41.0ms
(sqrt (* 2.0 (* (/ (pow im 1) (- (sqrt (+ (* re re) (* im im))) re)) im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series353.0ms

Counts
4 → 12
Calls
4 calls:
74.0ms
(* (/ (pow im 1) (- (sqrt (+ (* re re) (* im im))) re)) im)
51.0ms
(- (sqrt (+ (* re re) (* im im))) re)
193.0ms
(sqrt (* 2.0 (* (/ (pow im 1) (- (sqrt (+ (* re re) (* im im))) re)) im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify59.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
05111089
118221007
250021001

prune348.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 10.9b

regimes201.0ms

Accuracy

59.1% (12.1b remaining)

Error of 23.2b against oracle of 11.1b and baseline of 40.7b

bsearch148.0ms

Steps
ItersRangePoint
10
7.491092794297452e+92
1.1133938054187134e+105
2.37750825737912e+102
10
3.881047267995072e-257
1.772377591316065e-238
1.4937844730964523e-255
7
-1.5405955983178716e+163
-1.652330989326774e+161
-1.6813323895701712e+161

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
06032
16332
26332

end0.0ms

sample670.0ms

Algorithm
intervals
Results
207.0ms6080×body80valid
140.0ms699×body2560valid
70.0ms447×body1280valid
64.0ms262×body5120valid
35.0ms266×body640valid
14.0ms154×body320valid
6.0ms92×body160valid