Details

Time bar (total: 3.9s)

sample37.0ms

Algorithm
intervals
Results
9.0ms184×body80valid
8.0ms28×body2560valid
5.0ms22×body1280valid
3.0msbody5120valid
1.0msbody640valid
1.0msbody320valid
0.0msbody160valid

simplify8.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0178
1248
2308
3358
4358

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 40.8b

Counts
2 → 1

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1
*-un-lft-identity
sqrt-prod add-log-exp
add-cube-cbrt sqrt-div
add-exp-log sqrt-pow1 add-cbrt-cube
flip3-- pow1/2 associate-*r/ flip-- difference-of-squares
sub-neg rem-sqrt-square flip3-+ diff-log pow-prod-down flip-+ distribute-lft-out--
Counts
3 → 43
Calls
3 calls:
11.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)))

series258.0ms

Counts
3 → 9
Calls
3 calls:
172.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify77.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 3 (71.0ms)

IterNodesCost
0232382
1768356
22506346
35001344

prune141.0ms

Filtered
52 candidates to 42 candidates (80.8%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New45752
Fresh000
Picked101
Done000
Total46753

Merged error: 18.1b

Counts
53 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

1.0b
(- (sqrt (+ (* re re) (* im im))) re)
1.0b
(- (sqrt (+ (* re re) (* im im))) re)
29.9b
(sqrt (+ (* re re) (* im im)))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×*-un-lft-identity
sqrt-prod add-log-exp
pow1 add-cube-cbrt
add-exp-log sqrt-div add-cbrt-cube difference-of-squares
sub-neg rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 diff-log flip-- flip-+ distribute-lft-out--
Counts
4 → 60
Calls
4 calls:
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series167.0ms

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

simplify85.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 4 (78.0ms)

IterNodesCost
0135456
1332432
2839424
32503422
45002420

prune228.0ms

Filtered
72 candidates to 56 candidates (77.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New72072
Fresh066
Picked011
Done000
Total72779

Merged error: 18.1b

Counts
79 → 7

localize13.0ms

Local error

Found 4 expressions with local error:

1.4b
(+ (sqrt (+ (* re re) (* im im))) re)
5.5b
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
19.1b
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite35.0ms

Algorithm
rewrite-expression-head
Rules
44×*-un-lft-identity
32×times-frac
25×add-sqr-sqrt
24×add-cube-cbrt
15×unpow-prod-down
10×distribute-lft-out
add-exp-log
pow1 associate-/l*
add-cbrt-cube add-log-exp
unpow2 sqr-pow
associate-/r* sqrt-prod
sqrt-pow1 flip3-+ sqrt-div div-exp flip-+
pow1/2 associate-/r/
cbrt-undiv +-commutative pow-to-exp rem-sqrt-square frac-2neg associate-*r/ pow-prod-down pow-exp clear-num sum-log div-inv
Counts
4 → 99
Calls
4 calls:
6.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
11.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
11.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
4.0ms
(sqrt (+ (* re re) (* im im)))

series347.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
196.0ms
(sqrt (* 2.0 (/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))))
67.0ms
(/ (pow im 2) (+ (sqrt (+ (* re re) (* im im))) re))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify56.0ms

Algorithm
egg-herbie
Counts
111 → 111
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
04171078
11461985
25001978

prune263.0ms

Filtered
111 candidates to 78 candidates (70.3%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1065111
Fresh235
Picked101
Done101
Total1108118

Merged error: 5.4b

Counts
118 → 8

localize12.0ms

Local error

Found 4 expressions with local error:

0.1b
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
1.4b
(+ (sqrt (+ (* re re) (* im im))) re)
5.5b
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
29.9b
(sqrt (+ (* re re) (* im im)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
22×*-un-lft-identity
20×add-sqr-sqrt
18×associate-*r*
14×add-cube-cbrt
13×pow1 times-frac
add-exp-log add-cbrt-cube
add-log-exp
sqrt-pow1 pow-prod-down sqrt-prod distribute-lft-out
flip3-+ sqrt-div associate-*r/ associate-*l* flip-+
pow1/2 prod-exp associate-/r/ cbrt-unprod unswap-sqr
cbrt-undiv +-commutative rem-sqrt-square div-exp sum-log *-commutative div-inv
Counts
4 → 77
Calls
4 calls:
13.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
7.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
10.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series347.0ms

Counts
4 → 12
Calls
4 calls:
65.0ms
(* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
195.0ms
(sqrt (* 2.0 (* im (/ im (+ (sqrt (+ (* re re) (* im im))) re)))))
39.0ms
(sqrt (+ (* re re) (* im im)))

simplify58.0ms

Algorithm
egg-herbie
Counts
89 → 89
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
0428701
11831618
25002614

prune188.0ms

Filtered
89 candidates to 67 candidates (75.3%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New85489
Fresh257
Picked101
Done000
Total88997

Merged error: 4.8b

Counts
97 → 9

regimes218.0ms

Accuracy

51.2% (17.5b remaining)

Error of 22.8b against oracle of 5.3b and baseline of 41.2b

bsearch265.0ms

Steps
ItersRangePoint
8
1.4836651054597001e+114
2.4529958308920781e+117
2.4265458997480397e+117
8
5.612942259261838e-23
1.6297369194368678e-18
2.1169694866595254e-22
10
1.4968484379679263e-193
4.990939095712827e-179
2.2522826674058156e-185
7
2.646374358239448e-251
8.73209441103882e-250
7.96106282919079e-250
7
-3.5395546360482146e+146
-2.1109830459205943e+145
-1.797304937847029e+146

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08574
19074
29174
39174

end0.0ms

sample950.0ms

Algorithm
intervals
Results
308.0ms6061×body80valid
205.0ms703×body2560valid
119.0ms487×body1280valid
95.0ms261×body5120valid
48.0ms259×body640valid
20.0ms146×body320valid
8.0ms83×body160valid

Profiling

Loading profile data...