Details

Time bar (total: 5.0s)

sample55.0ms

Algorithm
intervals
Results
21.0ms187×body80valid
10.0ms24×body2560valid
7.0ms20×body1280valid
4.0msbody5120valid
2.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify7.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
0248
1308
2338
3338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 39.1b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite37.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:
3.0ms
(+ (* re re) (* im im))
14.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
15.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series304.0ms

Counts
4 → 12
Calls
4 calls:
28.0ms
(+ (* re re) (* im im))
187.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
52.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify93.0ms

Algorithm
egg-herbie
Counts
79 → 79
Iterations

Useful iterations: 3 (87.0ms)

IterNodesCost
0296446
11086401
23561382
35001381

prune234.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.8b

localize9.0ms

Local error

Found 2 expressions with local error:

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

rewrite10.0ms

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

series264.0ms

Counts
2 → 6
Calls
2 calls:
201.0ms
(sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))
63.0ms
(+ (* (sqrt 1) (hypot re im)) re)

simplify70.0ms

Algorithm
egg-herbie
Counts
35 → 35
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0202247
1638221
22370213
35002209

prune113.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 7.8b

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(sqrt (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)))))
0.8b
(+ (* (sqrt 1) (hypot re im)) re)
0.8b
(+ (* (sqrt 1) (hypot re im)) re)

rewrite66.0ms

Algorithm
rewrite-expression-head
Rules
80×sqrt-pow1
65×pow1
31×sqrt-prod
28×sqrt-div
26×add-sqr-sqrt
23×pow-prod-down
20×pow1/2
16×associate-*r/
14×pow-prod-up
13×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 rem-sqrt-square pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 130
Calls
4 calls:
6.0ms
(sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re))))
47.0ms
(* (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))) (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))))
4.0ms
(+ (* (sqrt 1) (hypot re im)) re)
4.0ms
(+ (* (sqrt 1) (hypot re im)) re)

series750.0ms

Counts
4 → 12
Calls
4 calls:
231.0ms
(sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re))))
397.0ms
(* (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))) (sqrt (sqrt (* 2.0 (+ (* (sqrt 1) (hypot re im)) re)))))
58.0ms
(+ (* (sqrt 1) (hypot re im)) re)
64.0ms
(+ (* (sqrt 1) (hypot re im)) re)

simplify62.0ms

Algorithm
egg-herbie
Counts
142 → 142
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04131260
116751125
250011073

prune368.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 7.8b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 2.0 (/ (+ 0 (pow im 2)) (- (hypot re im) re)))
1.0b
(- (hypot re im) re)
6.5b
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (- (hypot re im) re))))
20.7b
(/ (+ 0 (pow im 2)) (- (hypot re im) re))

rewrite69.0ms

Algorithm
rewrite-expression-head
Rules
75×*-un-lft-identity
58×add-sqr-sqrt
41×times-frac
33×add-cube-cbrt
26×associate-*r*
11×add-exp-log add-cbrt-cube distribute-lft-out
10×distribute-lft-out-- difference-of-squares
pow1 prod-diff
add-log-exp
associate-/r*
expm1-log1p-u associate-/r/ log1p-expm1-u associate-/l*
flip3-- fma-neg associate-*l* flip--
cbrt-undiv sqrt-pow1 associate-*r/ div-exp pow-prod-down prod-exp cbrt-unprod div-inv associate-/l/ unswap-sqr
sub-neg frac-2neg flip3-+ pow1/2 sqrt-div diff-log clear-num sqrt-prod *-commutative flip-+
Counts
4 → 136
Calls
4 calls:
34.0ms
(* 2.0 (/ (+ 0 (pow im 2)) (- (hypot re im) re)))
3.0ms
(- (hypot re im) re)
9.0ms
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (- (hypot re im) re))))
18.0ms
(/ (+ 0 (pow im 2)) (- (hypot re im) re))

series467.0ms

Counts
4 → 12
Calls
4 calls:
96.0ms
(* 2.0 (/ (+ 0 (pow im 2)) (- (hypot re im) re)))
65.0ms
(- (hypot re im) re)
218.0ms
(sqrt (* 2.0 (/ (+ 0 (pow im 2)) (- (hypot re im) re))))
89.0ms
(/ (+ 0 (pow im 2)) (- (hypot re im) re))

simplify75.0ms

Algorithm
egg-herbie
Counts
148 → 148
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
05251142
12442942
25001924

prune380.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 4.1b

regimes85.0ms

Accuracy

74.9% (2.5b remaining)

Error of 6.4b against oracle of 3.8b and baseline of 13.9b

bsearch56.0ms

Steps
ItersRangePoint
8
-3.3536907579395365e-135
-4.586080391798997e-138
-7.09276973381737e-138

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03115
13315
23315

end0.0ms

sample1.4s

Algorithm
intervals
Results
543.0ms5965×body80valid
298.0ms712×body2560valid
181.0ms529×body1280valid
136.0ms266×body5120valid
81.0ms290×body640valid
33.0ms160×body320valid
12.0ms78×body160valid