Details

Time bar (total: 8.6s)

sample76.0ms

Algorithm
intervals
Results
26.0ms82×body1280valid
16.0ms76×body640valid
11.0ms235×body80valid
5.0ms34×body320valid
2.0ms23×body160valid

simplify19.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0267
1576
2876
31146
41326
51516
61716
71736
81736

prune8.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.4b

Counts
2 → 2

localize15.0ms

Local error

Found 2 expressions with local error:

0.2b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.4b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
add-exp-log add-cbrt-cube
add-cube-cbrt *-un-lft-identity
times-frac associate-/r* sqrt-prod
pow1
associate-*r* associate-*l*
cbrt-undiv expm1-log1p-u div-exp prod-exp cbrt-unprod fma-udef log1p-expm1-u add-log-exp
distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down clear-num *-commutative div-inv associate-/l* unswap-sqr
Counts
2 → 51
Calls
2 calls:
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
6.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series315.0ms

Counts
2 → 6
Calls
2 calls:
106.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
209.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify34.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0202424
1995365
25001359

prune156.0ms

Filtered
57 candidates to 39 candidates (68.4%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New49857
Fresh101
Picked011
Done000
Total50959

Merged error: 0.0b

Counts
59 → 9

localize13.0ms

Local error

Found 3 expressions with local error:

0.2b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.3b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
0.3b
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
56×times-frac
36×cbrt-prod
35×add-exp-log add-sqr-sqrt
33×add-cube-cbrt *-un-lft-identity
22×add-cbrt-cube
18×sqrt-prod
13×cbrt-undiv div-exp
12×div-inv
10×associate-/r*
prod-exp cbrt-unprod
associate-/l*
pow1
expm1-log1p-u associate-*r* associate-*l* log1p-expm1-u add-log-exp
frac-2neg clear-num fma-udef
distribute-rgt-in distribute-lft-in pow-prod-down *-commutative associate-/l/ unswap-sqr
Counts
3 → 127
Calls
3 calls:
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
9.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
13.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

series969.0ms

Counts
3 → 9
Calls
3 calls:
106.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
646.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
217.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

simplify72.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (55.0ms)

IterNodesCost
04882207
125281901
250011871

prune570.0ms

Filtered
136 candidates to 93 candidates (68.4%)
Pruning

6 alts after pruning (6 fresh and 0 done)

PrunedKeptTotal
New1315136
Fresh617
Picked101
Done101
Total1396145

Merged error: 0b

Counts
145 → 6

localize16.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (cos th) (hypot a1 a2))
0.3b
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
0.3b
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
5.1b
(sqrt (fma a1 a1 (* a2 a2)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
56×add-exp-log times-frac
38×add-sqr-sqrt
37×add-cbrt-cube
36×cbrt-prod
35×add-cube-cbrt *-un-lft-identity
21×sqrt-prod
19×cbrt-undiv div-exp prod-exp cbrt-unprod
12×div-inv
10×associate-/r*
pow1
associate-/l*
expm1-log1p-u log1p-expm1-u add-log-exp
associate-*r* associate-*l*
frac-2neg clear-num
rem-sqrt-square sqrt-pow1 pow1/2 pow-prod-down *-commutative fma-udef hypot-def associate-/l/ unswap-sqr
Counts
4 → 149
Calls
4 calls:
4.0ms
(* (cos th) (hypot a1 a2))
15.0ms
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
11.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
2.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series1.1s

Counts
4 → 12
Calls
4 calls:
98.0ms
(* (cos th) (hypot a1 a2))
283.0ms
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
686.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
45.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify84.0ms

Algorithm
egg-herbie
Counts
161 → 161
Iterations

Useful iterations: 2 (63.0ms)

IterNodesCost
05652803
129792283
250022194

prune486.0ms

Filtered
161 candidates to 111 candidates (68.9%)
Pruning

5 alts after pruning (5 fresh and 0 done)

PrunedKeptTotal
New1583161
Fresh325
Picked101
Done000
Total1625167

Merged error: 0b

Counts
167 → 5

localize13.0ms

Local error

Found 4 expressions with local error:

0.1b
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))
0.2b
(* (cos th) (hypot a1 a2))
0.3b
(/ (/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))) (cbrt (sqrt 2.0)))
0.3b
(/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2)))

rewrite46.0ms

Algorithm
rewrite-expression-head
Rules
224×times-frac
83×add-sqr-sqrt
81×add-cube-cbrt *-un-lft-identity
78×cbrt-prod
61×add-exp-log
44×add-cbrt-cube
39×sqrt-prod
29×cbrt-undiv div-exp
25×div-inv
19×associate-/r*
14×associate-/l*
12×prod-exp cbrt-unprod
11×associate-/r/
pow1
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg associate-*r* associate-*l* clear-num
pow-prod-down *-commutative associate-/l/ unswap-sqr
Counts
4 → 239
Calls
4 calls:
7.0ms
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))
4.0ms
(* (cos th) (hypot a1 a2))
15.0ms
(/ (/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))) (cbrt (sqrt 2.0)))
10.0ms
(/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2)))

series1.3s

Counts
4 → 12
Calls
4 calls:
288.0ms
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))
100.0ms
(* (cos th) (hypot a1 a2))
238.0ms
(/ (/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))) (cbrt (sqrt 2.0)))
648.0ms
(/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2)))

simplify131.0ms

Algorithm
egg-herbie
Counts
251 → 251
Iterations

Useful iterations: 2 (94.0ms)

IterNodesCost
08894532
146904102
250014056

prune731.0ms

Filtered
251 candidates to 184 candidates (73.3%)
Pruning

5 alts after pruning (4 fresh and 1 done)

PrunedKeptTotal
New2510251
Fresh044
Picked011
Done000
Total2515256

Merged error: 0b

Counts
256 → 5

regimes148.0ms

Accuracy

0% (0.4b remaining)

Error of 0.4b against oracle of 0.0b and baseline of 0.4b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01414
11414

end0.0ms

sample2.2s

Algorithm
intervals
Results
766.0ms2428×body1280valid
474.0ms2116×body640valid
403.0ms8197×body80valid
152.0ms1021×body320valid
57.0ms528×body160valid