Details

Time bar (total: 6.4s)

sample393.0ms

Algorithm
intervals
Results
44.0ms95×body1280valid
35.0ms53×body640valid
4.0ms26×body320valid
4.0ms69×body80valid
2.0ms13×body160valid

simplify11.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0125
1165
2205
3215
4215

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 17.1b

localize12.0ms

Local error

Found 3 expressions with local error:

0.2b
(* r (/ (sin b) (cos (+ a b))))
0.3b
(/ (sin b) (cos (+ a b)))
3.8b
(cos (+ a b))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt
19×add-cube-cbrt *-un-lft-identity times-frac
13×associate-*r*
10×add-exp-log add-cbrt-cube
pow1
expm1-log1p-u associate-*l* associate-/r* log1p-expm1-u associate-/l* add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod div-inv unswap-sqr
cos-sum frac-2neg associate-*r/ pow-prod-down clear-num *-commutative
Counts
3 → 73
Calls
3 calls:
17.0ms
(* r (/ (sin b) (cos (+ a b))))
10.0ms
(/ (sin b) (cos (+ a b)))
12.0ms
(cos (+ a b))

series172.0ms

Counts
3 → 9
Calls
3 calls:
101.0ms
(* r (/ (sin b) (cos (+ a b))))
40.0ms
(/ (sin b) (cos (+ a b)))
31.0ms
(cos (+ a b))

simplify40.0ms

Algorithm
egg-herbie
Counts
82 → 82
Iterations

Useful iterations: 1 (8.0ms)

IterNodesCost
0263560
11093504
25002504

prune207.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.2b

localize15.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos a) (cos b))
0.2b
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
0.2b
(* (sin a) (sin b))
0.2b
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

rewrite122.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
24×add-cube-cbrt *-un-lft-identity
23×associate-*r*
19×times-frac
15×add-exp-log add-cbrt-cube
10×pow1
associate-*l*
associate-/r/
cos-mult sin-mult
expm1-log1p-u prod-exp cbrt-unprod log1p-expm1-u add-log-exp unswap-sqr
pow-prod-down associate-/r* *-commutative associate-/l*
cbrt-undiv flip3-- div-exp frac-sub flip-- div-inv sub-div
frac-2neg associate-*r/ clear-num
Counts
4 → 113
Calls
4 calls:
10.0ms
(* (cos a) (cos b))
70.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
14.0ms
(* (sin a) (sin b))
25.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series425.0ms

Counts
4 → 12
Calls
4 calls:
40.0ms
(* (cos a) (cos b))
220.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b)))))
48.0ms
(* (sin a) (sin b))
118.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

simplify59.0ms

Algorithm
egg-herbie
Counts
125 → 125
Iterations

Useful iterations: 2 (46.0ms)

IterNodesCost
04451273
119101154
250011152

prune386.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos a) (cos b))
0.2b
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
0.2b
(* (sin a) (sin b))
0.2b
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

rewrite128.0ms

Algorithm
rewrite-expression-head
Rules
34×add-exp-log
27×add-sqr-sqrt
23×add-cube-cbrt *-un-lft-identity associate-*r*
22×add-cbrt-cube
18×times-frac
14×pow1 prod-exp
associate-/r/ cbrt-unprod
associate-*l*
div-exp
pow-prod-down cos-mult sin-mult
expm1-log1p-u log1p-expm1-u add-log-exp
cbrt-undiv rec-exp 1-exp associate-/r* *-commutative associate-/l*
flip3-- frac-sub flip-- div-inv sub-div unswap-sqr
pow-flip frac-2neg associate-*r/ clear-num un-div-inv inv-pow
Counts
4 → 123
Calls
4 calls:
10.0ms
(* (cos a) (cos b))
34.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
11.0ms
(* (sin a) (sin b))
69.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

series428.0ms

Counts
4 → 12
Calls
4 calls:
41.0ms
(* (cos a) (cos b))
107.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
58.0ms
(* (sin a) (sin b))
222.0ms
(* (* r (sin b)) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify66.0ms

Algorithm
egg-herbie
Counts
135 → 135
Iterations

Useful iterations: 2 (56.0ms)

IterNodesCost
05231347
124431166
250011137

prune364.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

0.2b
(* r (* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))))
0.2b
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
0.2b
(* (sin a) (sin b))
0.3b
(* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

rewrite197.0ms

Algorithm
rewrite-expression-head
Rules
34×add-exp-log
32×add-sqr-sqrt
24×*-un-lft-identity
23×add-cube-cbrt
22×add-cbrt-cube
21×associate-*r*
20×times-frac
14×pow1 prod-exp
associate-*l*
associate-/r/ cbrt-unprod
div-exp
pow-prod-down sin-mult
expm1-log1p-u associate-*r/ cos-mult log1p-expm1-u add-log-exp unswap-sqr
cbrt-undiv rec-exp 1-exp associate-/r* *-commutative associate-/l*
flip3-- un-div-inv frac-sub flip-- div-inv sub-div
pow-flip frac-2neg clear-num inv-pow
Counts
4 → 126
Calls
4 calls:
72.0ms
(* r (* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))))
34.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
12.0ms
(* (sin a) (sin b))
75.0ms
(* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

series489.0ms

Counts
4 → 12
Calls
4 calls:
224.0ms
(* r (* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))))
100.0ms
(/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b))))
45.0ms
(* (sin a) (sin b))
119.0ms
(* (sin b) (/ 1 (- (* (cos a) (cos b)) (* (sin a) (sin b)))))

simplify63.0ms

Algorithm
egg-herbie
Counts
138 → 138
Iterations

Useful iterations: 2 (48.0ms)

IterNodesCost
04761553
120581336
250021307

prune355.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 0b

regimes141.0ms

Accuracy

0% (0.3b remaining)

Error of 0.3b against oracle of 0.1b and baseline of 0.3b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01510
11510

end0.0ms

sample2.2s

Algorithm
intervals
Results
1.2s2912×body1280valid
452.0ms1858×body640valid
131.0ms767×body320valid
121.0ms2114×body80valid
43.0ms353×body160valid