Details

Time bar (total: 6.4s)

sample76.0ms

Algorithm
intervals
Results
28.0ms84×body1280valid
13.0ms57×body640valid
12.0ms250×body80valid
5.0ms30×body320valid
2.0ms17×body160valid

simplify20.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.4b

Counts
2 → 2

localize11.0ms

Local error

Found 3 expressions with local error:

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

rewrite16.0ms

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

series351.0ms

Counts
3 → 9
Calls
3 calls:
33.0ms
(fma a1 a1 (* a2 a2))
108.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
211.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify39.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0205467
11002399
25001393

prune178.0ms

Filtered
70 candidates to 49 candidates (70.0%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New63770
Fresh011
Picked101
Done000
Total64872

Merged error: 0b

Counts
72 → 8

localize17.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.4b
(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:
6.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)))

series615.0ms

Counts
4 → 12
Calls
4 calls:
177.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
106.0ms
(* (cos th) (hypot a1 a2))
288.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
43.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify48.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0305786
11700625
25001573

prune263.0ms

Filtered
102 candidates to 72 candidates (70.6%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1002102
Fresh257
Picked101
Done000
Total1037110

Merged error: 0b

Counts
110 → 7

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.2b
(* (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×add-exp-log cbrt-prod add-sqr-sqrt
34×add-cube-cbrt *-un-lft-identity
23×add-cbrt-cube
18×sqrt-prod
13×cbrt-undiv div-exp
12×div-inv
10×associate-/r*
prod-exp cbrt-unprod
pow1 associate-/l*
expm1-log1p-u log1p-expm1-u add-log-exp
associate-*r* associate-*l* fma-udef
frac-2neg clear-num
distribute-rgt-in distribute-lft-in pow-prod-down *-commutative associate-/l/ unswap-sqr
Counts
4 → 137
Calls
4 calls:
1.0ms
(fma a1 a1 (* a2 a2))
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))))
12.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

series1.0s

Counts
4 → 12
Calls
4 calls:
32.0ms
(fma a1 a1 (* a2 a2))
113.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))))
220.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

simplify77.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (58.0ms)

IterNodesCost
04912250
125351935
250011905

prune383.0ms

Filtered
149 candidates to 104 candidates (69.8%)
Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New1490149
Fresh066
Picked011
Done000
Total1497156

Merged error: 0b

Counts
156 → 7

localize10.0ms

Local error

Found 3 expressions with local error:

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

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
36×times-frac
35×add-sqr-sqrt
33×add-cube-cbrt *-un-lft-identity
25×associate-*r*
21×sqrt-prod
19×add-exp-log add-cbrt-cube
10×pow1
prod-exp cbrt-unprod
associate-/r*
associate-*l* pow-prod-down
cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u associate-/l* add-log-exp
*-commutative div-inv
sqrt-undiv hypot-udef frac-2neg associate-*r/ clear-num unswap-sqr
Counts
3 → 106
Calls
3 calls:
4.0ms
(* (cos th) (hypot a1 a2))
10.0ms
(* (* (cos th) (hypot a1 a2)) (/ (hypot a1 a2) (sqrt 2.0)))
4.0ms
(/ (hypot a1 a2) (sqrt 2.0))

series452.0ms

Counts
3 → 9
Calls
3 calls:
103.0ms
(* (cos th) (hypot a1 a2))
245.0ms
(* (* (cos th) (hypot a1 a2)) (/ (hypot a1 a2) (sqrt 2.0)))
103.0ms
(/ (hypot a1 a2) (sqrt 2.0))

simplify59.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
0358850
12005753
25001735

prune239.0ms

Filtered
115 candidates to 78 candidates (67.8%)
Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New1141115
Fresh145
Picked011
Done011
Total1157122

Merged error: 0b

Counts
122 → 7

regimes182.0ms

Accuracy

0% (0.3b 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
0169
1169

end0.0ms

sample2.3s

Algorithm
intervals
Results
824.0ms2491×body1280valid
453.0ms2075×body640valid
406.0ms8009×body80valid
171.0ms1063×body320valid
58.0ms505×body160valid