Details

Time bar (total: 14.4s)

sample134.0ms

Algorithm
intervals
Results
51.0ms96×body1280valid
28.0ms268×body80valid
24.0ms66×body640valid
7.0ms28×body320valid
4.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))

series354.0ms

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

simplify34.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0205467
11002399
25001393

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

series657.0ms

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

simplify85.0ms

Algorithm
egg-herbie
Counts
237 → 237
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
06263262
129992821
250012819

prune476.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

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

rewrite29.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:
33.0ms
(fma a1 a1 (* a2 a2))
302.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
560.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
906.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0)))) (sqrt (cbrt (sqrt 2.0))))

simplify95.0ms

Algorithm
egg-herbie
Counts
167 → 167
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
06183150
133602859
250032841

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

rewrite123.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))))
37.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))))))
4.0ms
(cbrt (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))

series2.6s

Counts
4 → 10
Calls
4 calls:
562.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (fabs (cbrt (sqrt 2.0))) (sqrt (sqrt 2.0))))
903.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.1s
(/ (/ (* (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))))

simplify245.0ms

Algorithm
egg-herbie
Counts
778 → 778
Iterations

Useful iterations: 1 (39.0ms)

IterNodesCost
0213531537
1500130728

prune3.0s

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0b

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

sample3.6s

Algorithm
intervals
Results
1.3s2538×body1280valid
840.0ms7998×body80valid
773.0ms2117×body640valid
293.0ms1056×body320valid
96.0ms485×body160valid