Details

Time bar (total: 8.2s)

sample84.0ms

Algorithm
intervals
Results
28.0ms88×body1280valid
18.0ms280×body80valid
15.0ms70×body640valid
5.0ms31×body320valid
1.0ms14×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

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

rewrite12.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))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
6.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series370.0ms

Counts
3 → 9
Calls
3 calls:
34.0ms
(fma a1 a1 (* a2 a2))
114.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
222.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify36.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0205467
11002399
25001393

prune421.0ms

Filtered
70 candidates to 49 candidates (70.0%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New61970
Fresh101
Picked101
Done000
Total63972

Merged error: 0.0b

Counts
72 → 9

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

rewrite33.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)))
10.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
14.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:
34.0ms
(fma a1 a1 (* a2 a2))
117.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
658.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
223.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

simplify79.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (60.0ms)

IterNodesCost
04912250
125351935
250011905

prune481.0ms

Filtered
149 candidates to 104 candidates (69.8%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1463149
Fresh358
Picked011
Done000
Total1499158

Merged error: 0b

Counts
158 → 9

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos th) (hypot a1 a2))
0.1b
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 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:
4.0ms
(* (cos th) (hypot a1 a2))
7.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 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)))

series641.0ms

Counts
4 → 12
Calls
4 calls:
107.0ms
(* (cos th) (hypot a1 a2))
186.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
299.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
49.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify51.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0305785
11700625
25001573

prune322.0ms

Filtered
102 candidates to 71 candidates (69.6%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New1002102
Fresh257
Picked011
Done101
Total1038111

Merged error: 0b

Counts
111 → 8

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
61×add-exp-log add-sqr-sqrt
59×times-frac
48×add-cube-cbrt *-un-lft-identity
44×cbrt-prod
43×add-cbrt-cube
34×associate-*r*
23×prod-exp cbrt-unprod
22×sqrt-prod
18×cbrt-undiv div-exp
10×associate-/r*
pow1 associate-*l*
unswap-sqr
expm1-log1p-u log1p-expm1-u div-inv associate-/l* add-log-exp
frac-2neg pow-prod-down clear-num *-commutative
frac-times associate-*r/ associate-*l/
Counts
4 → 170
Calls
4 calls:
4.0ms
(* (cos th) (hypot a1 a2))
5.0ms
(/ (hypot a1 a2) (cbrt (sqrt 2.0)))
13.0ms
(/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
21.0ms
(* (/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (/ (hypot a1 a2) (cbrt (sqrt 2.0))))

series1.2s

Counts
4 → 12
Calls
4 calls:
108.0ms
(* (cos th) (hypot a1 a2))
302.0ms
(/ (hypot a1 a2) (cbrt (sqrt 2.0)))
585.0ms
(/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
251.0ms
(* (/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (/ (hypot a1 a2) (cbrt (sqrt 2.0))))

simplify115.0ms

Algorithm
egg-herbie
Counts
182 → 182
Iterations

Useful iterations: 2 (96.0ms)

IterNodesCost
06362325
137671967
250011857

prune561.0ms

Filtered
182 candidates to 126 candidates (69.2%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1811182
Fresh156
Picked011
Done011
Total1828190

Merged error: 0b

Counts
190 → 8

regimes225.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
01514
11514

end0.0ms

sample2.3s

Algorithm
intervals
Results
846.0ms2566×body1280valid
467.0ms2102×body640valid
429.0ms8126×body80valid
159.0ms1026×body320valid
55.0ms506×body160valid