Details

Time bar (total: 4.3s)

sample29.0ms

Algorithm
intervals
Results
6.0ms192×body80valid
5.0ms16×body1280valid
4.0ms22×body2560valid
3.0ms11×body5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 37.0b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.1b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
1.2b
(+ (sqrt (+ (* re re) (* im im))) re)
28.5b
(sqrt (+ (* re re) (* im im)))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-sqr-sqrt add-log-exp
add-cube-cbrt fma-def sqrt-prod
add-exp-log expm1-log1p-u flip3-+ sqrt-div add-cbrt-cube flip-+ log1p-expm1-u
sqrt-pow1
+-commutative pow1/2 associate-*r/ sum-log
rem-sqrt-square pow-prod-down hypot-def distribute-lft-out
Counts
4 → 67
Calls
4 calls:
4.0ms
(+ (* re re) (* im im))
9.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series287.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
176.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify90.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (84.0ms)

IterNodesCost
0296446
11086401
23561382
35001381

prune216.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 8.4b

localize13.0ms

Local error

Found 3 expressions with local error:

0.0b
(* 2.0 (+ (* (sqrt 1) (hypot re im)) re))
0.1b
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
1.2b
(+ (* (sqrt 1) (hypot re im)) re)

rewrite19.0ms

Algorithm
rewrite-expression-head
Rules
pow1
add-sqr-sqrt
add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube add-log-exp
associate-*r/
expm1-log1p-u flip3-+ associate-*r* associate-*l* flip-+ log1p-expm1-u
sqrt-pow1 sqrt-div pow-prod-down
+-commutative distribute-rgt-in fma-def distribute-lft-in pow1/2 prod-exp sum-log sqrt-prod *-commutative cbrt-unprod unswap-sqr
Counts
3 → 53
Calls
3 calls:
7.0ms
(* 2.0 (+ (* (sqrt 1) (hypot re im)) re))
6.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
5.0ms
(+ (* (sqrt 1) (hypot re im)) re)

series317.0ms

Counts
3 → 9
Calls
3 calls:
63.0ms
(* 2.0 (+ (* (sqrt 1) (hypot re im)) re))
198.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
56.0ms
(+ (* (sqrt 1) (hypot re im)) re)

simplify39.0ms

Algorithm
egg-herbie
Counts
62 → 62
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0270417
11076370
25002357

prune188.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 8.4b

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
0.4b
(* (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))) (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))))
1.2b
(+ (* (sqrt 1) (hypot re im)) re)
1.2b
(+ (* (sqrt 1) (hypot re im)) re)

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
76×sqrt-pow1
64×pow1
27×sqrt-prod
26×sqrt-div
24×add-sqr-sqrt
23×pow-prod-down
19×pow1/2
16×associate-*r/
14×pow-prod-up
12×add-cube-cbrt *-un-lft-identity
flip3-+ swap-sqr flip-+
pow-sqr add-log-exp
associate-*r* associate-*l*
add-exp-log add-cbrt-cube
expm1-log1p-u frac-times log1p-expm1-u unswap-sqr
+-commutative fma-def associate-*l/ sum-log
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
6.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
19.0ms
(* (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))) (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))))
5.0ms
(+ (* (sqrt 1) (hypot re im)) re)
5.0ms
(+ (* (sqrt 1) (hypot re im)) re)

series504.0ms

Counts
4 → 12
Calls
4 calls:
191.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
193.0ms
(* (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))) (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))))
60.0ms
(+ (* (sqrt 1) (hypot re im)) re)
60.0ms
(+ (* (sqrt 1) (hypot re im)) re)

simplify59.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
03211124
112731017
25001960

prune352.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 8.4b

localize19.0ms

Local error

Found 4 expressions with local error:

0.7b
(pow (cbrt (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re))))) 4)
1.2b
(+ (* (sqrt 1) (hypot re im)) re)
1.2b
(+ (* (sqrt 1) (hypot re im)) re)
1.2b
(+ (* (sqrt 1) (hypot re im)) re)

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
10×unpow-prod-down add-log-exp
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
cbrt-prod
pow1 add-exp-log sqrt-prod
expm1-log1p-u add-cbrt-cube log1p-expm1-u
+-commutative pow-unpow fma-def flip3-+ sum-log flip-+
pow-pow
pow-to-exp pow1/3 pow-exp sqr-pow
Counts
4 → 69
Calls
4 calls:
5.0ms
(pow (cbrt (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re))))) 4)
5.0ms
(+ (* (sqrt 1) (hypot re im)) re)
5.0ms
(+ (* (sqrt 1) (hypot re im)) re)
5.0ms
(+ (* (sqrt 1) (hypot re im)) re)

series628.0ms

Counts
4 → 12
Calls
4 calls:
451.0ms
(pow (cbrt (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re))))) 4)
61.0ms
(+ (* (sqrt 1) (hypot re im)) re)
56.0ms
(+ (* (sqrt 1) (hypot re im)) re)
61.0ms
(+ (* (sqrt 1) (hypot re im)) re)

simplify127.0ms

Algorithm
egg-herbie
Counts
81 → 81
Iterations

Useful iterations: 3 (119.0ms)

IterNodesCost
0325715
1985654
24419609
35001600

prune390.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 8.4b

regimes107.0ms

Accuracy

24.3% (4.4b remaining)

Error of 11.9b against oracle of 7.5b and baseline of 13.3b

bsearch51.0ms

Steps
ItersRangePoint
7
-1.6130657792099538e+163
-4.1161059723711623e+161
-8.475123035003605e+161

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03215
13415
23415

end0.0ms

sample698.0ms

Algorithm
intervals
Results
206.0ms6018×body80valid
146.0ms717×body2560valid
83.0ms486×body1280valid
73.0ms277×body5120valid
36.0ms279×body640valid
15.0ms151×body320valid
5.0ms72×body160valid