Details

Time bar (total: 4.4s)

sample48.0ms

Algorithm
intervals
Results
15.0ms181×body80valid
10.0ms28×body2560valid
6.0ms15×body5120valid
5.0ms18×body1280valid
2.0ms10×body640valid
0.0msbody160valid
0.0msbody320valid

simplify6.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0228
1248
2248

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 43.6b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.2b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-log-exp
*-un-lft-identity
add-sqr-sqrt
add-cube-cbrt
add-exp-log flip3-+ sqrt-div sqrt-prod add-cbrt-cube flip-+
sqrt-pow1
+-commutative pow1/2 associate-*r/ sum-log
rem-sqrt-square pow-prod-down distribute-lft-out
Counts
4 → 51
Calls
4 calls:
2.0ms
(+ (* re re) (* im im))
10.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
12.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))

series274.0ms

Counts
4 → 12
Calls
4 calls:
29.0ms
(+ (* re re) (* im im))
165.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
43.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify88.0ms

Algorithm
egg-herbie
Counts
63 → 63
Iterations

Useful iterations: 3 (83.0ms)

IterNodesCost
0274428
1986391
23089381
35002379

prune182.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 20.2b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(- (sqrt (+ (* re re) (* im im))) re)
7.9b
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
20.6b
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
32.7b
(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:
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
16.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
20.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
3.0ms
(sqrt (+ (* re re) (* im im)))

series335.0ms

Counts
4 → 12
Calls
4 calls:
44.0ms
(- (sqrt (+ (* re re) (* im im))) re)
186.0ms
(sqrt (* 2.0 (/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))))
71.0ms
(/ (pow im 2) (- (sqrt (+ (* re re) (* im im))) re))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
132 → 132
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
04471428
115821323
250011313

prune301.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 16.5b

localize14.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
30.8b
(sqrt (* 2.0 (pow im 2)))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt sqrt-prod
37×*-un-lft-identity
36×times-frac
25×add-cube-cbrt
12×difference-of-squares
associate-/r*
pow1 add-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
sqrt-div associate-/l*
flip3-- sqrt-pow1 pow1/2 associate-/r/ flip--
cbrt-undiv sub-neg rem-sqrt-square sqrt-undiv frac-2neg flip3-+ diff-log div-exp clear-num flip-+ div-inv
Counts
4 → 104
Calls
4 calls:
21.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
16.0ms
(- (sqrt (+ (* re re) (* im im))) re)
2.0ms
(sqrt (* 2.0 (pow im 2)))
3.0ms
(sqrt (+ (* re re) (* im im)))

series298.0ms

Counts
4 → 12
Calls
4 calls:
182.0ms
(/ (sqrt (* 2.0 (pow im 2))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
32.0ms
(sqrt (* 2.0 (pow im 2)))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify45.0ms

Algorithm
egg-herbie
Counts
116 → 116
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
03931462
113761383
250011354

prune317.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 10.8b

localize13.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (* (sqrt 2.0) (fabs im)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.3b
(- (sqrt (+ (* re re) (* im im))) re)
0.4b
(* (sqrt 2.0) (fabs im))
32.7b
(sqrt (+ (* re re) (* im im)))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt
22×sqrt-prod
18×*-un-lft-identity
12×add-cube-cbrt
11×add-exp-log add-cbrt-cube
times-frac associate-/r*
pow1
associate-*l* add-log-exp difference-of-squares
sqrt-div
associate-*r* distribute-lft-out--
cbrt-undiv flip3-- div-exp prod-exp associate-/r/ flip-- cbrt-unprod unswap-sqr
sub-neg rem-sqrt-square frac-2neg sqrt-pow1 flip3-+ pow1/2 diff-log pow-prod-down clear-num *-commutative flip-+ div-inv associate-/l*
Counts
4 → 87
Calls
4 calls:
23.0ms
(/ (* (sqrt 2.0) (fabs im)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
17.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(* (sqrt 2.0) (fabs im))
3.0ms
(sqrt (+ (* re re) (* im im)))

series262.0ms

Counts
4 → 12
Calls
4 calls:
151.0ms
(/ (* (sqrt 2.0) (fabs im)) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
46.0ms
(- (sqrt (+ (* re re) (* im im))) re)
30.0ms
(* (sqrt 2.0) (fabs im))
34.0ms
(sqrt (+ (* re re) (* im im)))

simplify53.0ms

Algorithm
egg-herbie
Counts
99 → 99
Iterations

Useful iterations: 2 (45.0ms)

IterNodesCost
0450903
11991826
25002817

prune249.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 8.8b

regimes138.0ms

Accuracy

50.6% (14.8b remaining)

Error of 22.3b against oracle of 7.5b and baseline of 37.4b

bsearch278.0ms

Steps
ItersRangePoint
8
3.3685160830587113e-93
1.1118131948146322e-89
6.786381174376227e-92
7
4.321237752559463e-255
8.594462797983843e-254
2.3062092194117723e-254
8
2.555487769507404e-297
9.204367104374754e-295
2.216823154714405e-295
10
-3.744556309116812e-103
-1.0905044694663493e-116
-1.1044329890532487e-116
10
-8.777387788220042e+125
-4.2027485674795273e+114
-8.15615961666859e+125

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07555
17555

end0.0ms

sample1.2s

Algorithm
intervals
Results
429.0ms5987×body80valid
241.0ms673×body2560valid
150.0ms500×body1280valid
136.0ms312×body5120valid
70.0ms292×body640valid
27.0ms153×body320valid
10.0ms83×body160valid