Details

Time bar (total: 13.0s)

sample84.0ms

Algorithm
intervals
Results
30.0ms96×body1280valid
16.0ms268×body80valid
14.0ms66×body640valid
4.0ms28×body320valid
2.0ms20×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

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.4b

localize11.0ms

Local error

Found 3 expressions with local error:

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

rewrite10.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:
0.0ms
(fma a1 a1 (* a2 a2))
3.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
5.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series371.0ms

Counts
3 → 9
Calls
3 calls:
35.0ms
(fma a1 a1 (* a2 a2))
116.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
220.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

prune186.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.0b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite36.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:
0.0ms
(fma a1 a1 (* a2 a2))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
12.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
9.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0)))

series667.0ms

Counts
4 → 12
Calls
4 calls:
34.0ms
(fma a1 a1 (* a2 a2))
109.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
221.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
303.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt (sqrt 2.0)))

simplify84.0ms

Algorithm
egg-herbie
Counts
237 → 237
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
06263262
129992821
250012819

prune472.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

localize16.0ms

Local error

Found 4 expressions with local error:

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

rewrite28.0ms

Algorithm
rewrite-expression-head
Rules
74×times-frac
72×sqrt-prod
45×add-sqr-sqrt
43×add-cube-cbrt *-un-lft-identity
36×add-exp-log cbrt-prod add-cbrt-cube
15×div-inv
13×cbrt-undiv div-exp 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 → 155
Calls
4 calls:
0.0ms
(fma a1 a1 (* a2 a2))
3.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
7.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
12.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (sqrt 2.0))))

series1.8s

Counts
4 → 12
Calls
4 calls:
34.0ms
(fma a1 a1 (* a2 a2))
114.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
556.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
1.1s
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (sqrt 2.0))))

simplify96.0ms

Algorithm
egg-herbie
Counts
167 → 167
Iterations

Useful iterations: 2 (73.0ms)

IterNodesCost
06183150
133602859
250032841

prune560.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0b

localize23.0ms

Local error

Found 4 expressions with local error:

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

rewrite121.0ms

Algorithm
rewrite-expression-head
Rules
1301×times-frac
944×sqrt-prod
687×cbrt-prod
512×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
139×div-inv
59×add-exp-log add-cbrt-cube
45×associate-/l*
28×cbrt-undiv div-exp
23×associate-/r*
12×prod-exp cbrt-unprod
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg clear-num
associate-/l/
pow1/3
Counts
4 → 768
Calls
4 calls:
7.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
36.0ms
(/ (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))))) (sqrt (cbrt (cbrt (sqrt 2.0)))))
11.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))))
3.0ms
(cbrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))

series2.7s

Counts
4 → 10
Calls
4 calls:
638.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
930.0ms
(/ (/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))))) (sqrt (cbrt (cbrt (sqrt 2.0)))))
1.2s
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))))
0.0ms
(cbrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))

simplify243.0ms

Algorithm
egg-herbie
Counts
778 → 778
Iterations

Useful iterations: 1 (39.0ms)

IterNodesCost
0213531537
1500130728

prune2.9s

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0b

regimes182.0ms

Accuracy

0% (0.4b 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
02324
12324

end0.0ms

sample2.3s

Algorithm
intervals
Results
816.0ms2538×body1280valid
470.0ms2117×body640valid
398.0ms7998×body80valid
166.0ms1056×body320valid
51.0ms485×body160valid