Details

Time bar (total: 7.0s)

sample94.0ms

Algorithm
intervals
Results
34.0ms88×body1280valid
18.0ms69×body640valid
16.0ms260×body80valid
6.0ms29×body320valid
3.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

prune9.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.3b

Counts
2 → 2

localize15.0ms

Local error

Found 2 expressions with local error:

0.1b
(* (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))

series341.0ms

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

simplify36.0ms

Algorithm
egg-herbie
Counts
57 → 57
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0202424
1995365
25001359

prune165.0ms

Filtered
57 candidates to 39 candidates (68.4%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New48957
Fresh101
Picked101
Done000
Total50959

Merged error: 0.0b

Counts
59 → 9

localize15.0ms

Local error

Found 3 expressions with local error:

0.1b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.2b
(/ (* (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)))

rewrite32.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)))

series1.0s

Counts
3 → 9
Calls
3 calls:
120.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
692.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
234.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

simplify75.0ms

Algorithm
egg-herbie
Counts
136 → 136
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
04882207
125281901
250011871

prune374.0ms

Filtered
136 candidates to 94 candidates (69.1%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1351136
Fresh178
Picked011
Done000
Total1369145

Merged error: 0b

Counts
145 → 9

localize11.0ms

Local error

Found 2 expressions with local error:

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

rewrite18.0ms

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

series336.0ms

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

simplify42.0ms

Algorithm
egg-herbie
Counts
91 → 91
Iterations

Useful iterations: 2 (33.0ms)

IterNodesCost
0253776
11117684
25001659

prune213.0ms

Filtered
91 candidates to 58 candidates (63.7%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New90191
Fresh257
Picked011
Done011
Total928100

Merged error: 0b

Counts
100 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
0.1b
(* (cos th) (hypot a1 a2))
0.4b
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
6.0b
(sqrt (fma a1 a1 (* a2 a2)))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
20×add-exp-log add-cbrt-cube
16×add-sqr-sqrt
13×add-cube-cbrt *-un-lft-identity
12×pow1 sqrt-prod
associate-*r*
prod-exp cbrt-unprod
times-frac associate-/r*
expm1-log1p-u associate-*l* pow-prod-down log1p-expm1-u add-log-exp
cbrt-undiv div-exp
*-commutative
rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 clear-num fma-udef hypot-def div-inv associate-/l* unswap-sqr
Counts
4 → 90
Calls
4 calls:
7.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
4.0ms
(* (cos th) (hypot a1 a2))
9.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
2.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series660.0ms

Counts
4 → 12
Calls
4 calls:
194.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
109.0ms
(* (cos th) (hypot a1 a2))
308.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
50.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify49.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0305785
11700625
25001573

prune262.0ms

Filtered
102 candidates to 72 candidates (70.6%)
Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New1020102
Fresh055
Picked011
Done022
Total1028110

Merged error: 0b

Counts
110 → 8

regimes392.0ms

Accuracy

0% (0.5b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01413
11413

end0.0ms

sample2.8s

Algorithm
intervals
Results
1.0s2527×body1280valid
579.0ms2150×body640valid
528.0ms8184×body80valid
204.0ms1012×body320valid
67.0ms505×body160valid