Details

Time bar (total: 10.4s)

sample89.0ms

Algorithm
intervals
Results
30.0ms80×body1280valid
20.0ms67×body640valid
16.0ms251×body80valid
5.0ms30×body320valid
1.0ms11×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))

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

series369.0ms

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

simplify34.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (28.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
New62870
Fresh101
Picked101
Done000
Total64872

Merged error: 0.0b

Counts
72 → 8

localize12.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.3b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0)))
0.3b
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

rewrite38.0ms

Algorithm
rewrite-expression-head
Rules
234×sqrt-prod
216×times-frac
96×add-sqr-sqrt
94×add-cube-cbrt *-un-lft-identity
20×add-exp-log add-cbrt-cube
18×associate-/r*
14×associate-/l*
12×div-inv
cbrt-undiv div-exp
pow1
expm1-log1p-u log1p-expm1-u add-log-exp
associate-*r* associate-*l* prod-exp cbrt-unprod fma-udef
frac-2neg clear-num
distribute-rgt-in distribute-lft-in pow-prod-down *-commutative associate-/l/ unswap-sqr
Counts
4 → 225
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))) (sqrt (sqrt 2.0)))
13.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

series666.0ms

Counts
4 → 12
Calls
4 calls:
33.0ms
(fma a1 a1 (* a2 a2))
106.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
311.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0)))
216.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))

simplify87.0ms

Algorithm
egg-herbie
Counts
237 → 237
Iterations

Useful iterations: 2 (55.0ms)

IterNodesCost
06263262
129992821
250012813

prune405.0ms

Filtered
237 candidates to 110 candidates (46.4%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New2343237
Fresh257
Picked101
Done000
Total2378245

Merged error: 0b

Counts
245 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite554.0ms

Algorithm
rewrite-expression-head
Rules
2253×sqrt-prod
1726×times-frac
1186×add-sqr-sqrt
808×add-cube-cbrt *-un-lft-identity
376×associate-*r*
85×unswap-sqr
40×associate-*l*
37×associate-/l*
34×add-exp-log add-cbrt-cube
33×associate-/r*
30×div-inv
14×cbrt-undiv div-exp
pow1 prod-exp cbrt-unprod
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg clear-num
frac-times associate-*r/ pow-prod-down associate-*l/ *-commutative associate-/l/
Counts
4 → 1077
Calls
4 calls:
7.0ms
(/ (cos th) (sqrt (sqrt (sqrt 2.0))))
23.0ms
(/ (/ (fma a1 a1 (* a2 a2)) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0))))
5.0ms
(/ (fma a1 a1 (* a2 a2)) (sqrt (sqrt 2.0)))
421.0ms
(* (/ (cos th) (sqrt (sqrt (sqrt 2.0)))) (/ (/ (fma a1 a1 (* a2 a2)) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))))

series1.0s

Counts
4 → 12
Calls
4 calls:
234.0ms
(/ (cos th) (sqrt (sqrt (sqrt 2.0))))
403.0ms
(/ (/ (fma a1 a1 (* a2 a2)) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0))))
153.0ms
(/ (fma a1 a1 (* a2 a2)) (sqrt (sqrt 2.0)))
220.0ms
(* (/ (cos th) (sqrt (sqrt (sqrt 2.0)))) (/ (/ (fma a1 a1 (* a2 a2)) (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))))

simplify220.0ms

Algorithm
egg-herbie
Counts
1089 → 1089
Iterations

Useful iterations: 1 (51.0ms)

IterNodesCost
0258221519
1500120240

prune1.7s

Filtered
1089 candidates to 380 candidates (34.9%)
Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New108901089
Fresh077
Picked011
Done000
Total108981097

Merged error: 0b

Counts
1097 → 8

localize15.0ms

Local error

Found 4 expressions with local error:

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

rewrite212.0ms

Algorithm
rewrite-expression-head
Rules
1038×sqrt-prod
799×times-frac
494×add-sqr-sqrt
406×*-un-lft-identity
394×add-cube-cbrt
379×associate-*r*
75×add-exp-log
49×add-cbrt-cube
32×div-exp
30×unswap-sqr
22×prod-exp
21×associate-/r*
19×associate-*l*
18×cbrt-undiv
16×div-inv
14×cbrt-unprod
11×pow1
pow-flip
expm1-log1p-u rec-exp sqrt-pow1 1-exp log1p-expm1-u associate-/l* add-log-exp
frac-2neg pow1/2 pow-prod-down clear-num *-commutative fma-udef
distribute-rgt-in frac-times distribute-lft-in associate-*r/ associate-*l/ inv-pow
Counts
4 → 583
Calls
4 calls:
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
8.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt (sqrt 2.0))))
142.0ms
(* (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))))
5.0ms
(/ 1 (sqrt (sqrt 2.0)))

series841.0ms

Counts
4 → 10
Calls
4 calls:
109.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
511.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt (sqrt 2.0))))
220.0ms
(* (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (sqrt (sqrt 2.0)))))
0.0ms
(/ 1 (sqrt (sqrt 2.0)))

simplify125.0ms

Algorithm
egg-herbie
Counts
593 → 593
Iterations

Useful iterations: 1 (46.0ms)

IterNodesCost
0226210311
150029229

prune951.0ms

Filtered
593 candidates to 209 candidates (35.2%)
Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New5930593
Fresh066
Picked011
Done011
Total5938601

Merged error: 0b

Counts
601 → 8

regimes184.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
01515
11515

end0.0ms

sample2.6s

Algorithm
intervals
Results
942.0ms2507×body1280valid
547.0ms2108×body640valid
490.0ms7898×body80valid
193.0ms1051×body320valid
73.0ms535×body160valid