Details

Time bar (total: 3.7s)

sample26.0ms

Algorithm
intervals
Results
6.0ms182×body80valid
4.0ms24×body2560valid
3.0ms14×body5120valid
3.0ms19×body1280valid
1.0msbody640valid
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: 39.7b

localize10.0ms

Local error

Found 3 expressions with local error:

0.1b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.8b
(+ (sqrt (+ (* re re) (* im im))) re)
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite22.0ms

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

series250.0ms

Counts
3 → 9
Calls
3 calls:
169.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify70.0ms

Algorithm
egg-herbie
Counts
49 → 49
Iterations

Useful iterations: 3 (65.0ms)

IterNodesCost
0244351
1743325
22278315
35001312

prune148.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 21.0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.6b
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
9.6b
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
30.8b
(sqrt (+ (* re re) (* im im)))
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
72×sqrt-prod
50×add-sqr-sqrt
34×sqrt-pow1
29×pow1
28×sqrt-div
18×add-cube-cbrt *-un-lft-identity pow1/2
15×swap-sqr
flip3-+ associate-*r* associate-*l* pow-prod-up flip-+ unswap-sqr
add-exp-log add-cbrt-cube add-log-exp
pow-prod-down pow-sqr
frac-times
rem-sqrt-square associate-*r/ associate-*l/
+-commutative pow2 pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 124
Calls
4 calls:
15.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
14.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series155.0ms

Counts
4 → 12
Calls
4 calls:
38.0ms
(* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im)))))
44.0ms
(+ (* (sqrt (sqrt (+ (* re re) (* im im)))) (sqrt (sqrt (+ (* re re) (* im im))))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify48.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
02671096
1974974
25001950

prune283.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 21.0b

localize13.0ms

Local error

Found 4 expressions with local error:

0.3b
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
8.0b
(sqrt (* 2.0 (/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))
20.9b
(/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite34.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
13×add-cube-cbrt *-un-lft-identity
times-frac
pow1
add-exp-log add-cbrt-cube add-log-exp
flip3-+ sqrt-prod flip-+
sqrt-pow1 sqrt-div associate-/r* associate-/l*
mul-1-neg pow1/2 associate-/r/ associate-/l/
cbrt-undiv +-commutative rem-sqrt-square frac-2neg associate-*r/ div-exp unsub-neg pow-prod-down clear-num sum-log div-inv
Counts
4 → 71
Calls
4 calls:
6.0ms
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
11.0ms
(sqrt (* 2.0 (/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))
11.0ms
(/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series342.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(+ (sqrt (+ (* re re) (* im im))) (* -1 re))
187.0ms
(sqrt (* 2.0 (/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))
72.0ms
(/ (+ (* im im) 0) (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))
38.0ms
(sqrt (+ (* re re) (* im im)))

simplify66.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
0417853
11895747
25002736

prune271.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 18.0b

localize19.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re))))
8.0b
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))))
30.8b
(sqrt (+ (* re re) (* im im)))
30.8b
(sqrt (+ (* re re) (* im im)))

rewrite39.0ms

Algorithm
rewrite-expression-head
Rules
23×add-sqr-sqrt
21×add-cube-cbrt *-un-lft-identity
19×sqrt-prod
18×times-frac
12×pow1
sqrt-div
add-exp-log associate-/r* add-cbrt-cube
sqrt-pow1
associate-*r/ add-log-exp
flip3-+ pow1/2 pow-prod-down flip-+ associate-/l*
rem-sqrt-square associate-/r/
cbrt-undiv frac-times frac-2neg div-exp associate-*l/ clear-num div-inv
Counts
4 → 86
Calls
4 calls:
9.0ms
(/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re))))
20.0ms
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))))
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series320.0ms

Counts
4 → 12
Calls
4 calls:
92.0ms
(/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re))))
156.0ms
(sqrt (* 2.0 (* (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))) (/ (fabs im) (sqrt (+ (sqrt (+ (* re re) (* im im))) (* -1 re)))))))
37.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify54.0ms

Algorithm
egg-herbie
Counts
98 → 98
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
05121247
119531149
250011141

prune343.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 14.1b

regimes295.0ms

Accuracy

63.1% (9.4b remaining)

Error of 21.0b against oracle of 11.6b and baseline of 37.2b

bsearch170.0ms

Steps
ItersRangePoint
5
7.302805852423036e+125
1.7755571015913085e+126
1.540876679767837e+126
7
-2.596632299517903e-272
-3.6457286778949607e-274
-1.0150073241706023e-273
9
-8.983960399464967e-179
-2.006309498428036e-184
-2.0278572522938575e-184
9
-4.404468717955143e+149
-6.606528294779468e+144
-4.3404622467709525e+149

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
07036
17436
27436

end0.0ms

sample644.0ms

Algorithm
intervals
Results
186.0ms5995×body80valid
123.0ms673×body2560valid
78.0ms505×body1280valid
73.0ms273×body5120valid
36.0ms302×body640valid
13.0ms149×body320valid
6.0ms103×body160valid