Details

Time bar (total: 4.4s)

sample86.0ms

Algorithm
intervals
Results
39.0ms70×body1280valid
19.0ms45×body640valid
11.0ms140×body80valid
5.0ms20×body320valid
2.0ms10×body160valid

simplify12.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0187
1336
2436
3546
4606
5626
6626

prune5.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.2b

localize11.0ms

Local error

Found 3 expressions with local error:

0.1b
(fma (- x) (/ 1.0 (tan B)) (/ 1.0 (sin B)))
0.1b
(/ 1.0 (sin B))
0.2b
(/ 1.0 (tan B))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
18×times-frac
add-exp-log add-cbrt-cube
associate-/r* associate-/l*
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
cbrt-undiv frac-2neg div-exp clear-num div-inv
tan-quot associate-/r/ fma-udef
Counts
3 → 69
Calls
3 calls:
0.0ms
(fma (- x) (/ 1.0 (tan B)) (/ 1.0 (sin B)))
2.0ms
(/ 1.0 (sin B))
2.0ms
(/ 1.0 (tan B))

series157.0ms

Counts
3 → 9
Calls
3 calls:
97.0ms
(fma (- x) (/ 1.0 (tan B)) (/ 1.0 (sin B)))
23.0ms
(/ 1.0 (sin B))
37.0ms
(/ 1.0 (tan B))

simplify59.0ms

Algorithm
egg-herbie
Counts
78 → 78
Iterations

Useful iterations: 3 (53.0ms)

IterNodesCost
0246416
1694382
22127382
35002377

prune228.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 3 expressions with local error:

0.1b
(fma (- x) (* 1.0 (/ (cos B) (sin B))) (/ 1.0 (sin B)))
0.1b
(/ 1.0 (sin B))
0.2b
(/ (cos B) (sin B))

rewrite7.0ms

Algorithm
rewrite-expression-head
Rules
19×add-sqr-sqrt add-cube-cbrt *-un-lft-identity
18×times-frac
add-exp-log add-cbrt-cube
associate-/r* associate-/l*
pow1 expm1-log1p-u log1p-expm1-u add-log-exp
cbrt-undiv frac-2neg div-exp clear-num div-inv
fma-udef
Counts
3 → 68
Calls
3 calls:
0.0ms
(fma (- x) (* 1.0 (/ (cos B) (sin B))) (/ 1.0 (sin B)))
2.0ms
(/ 1.0 (sin B))
3.0ms
(/ (cos B) (sin B))

series132.0ms

Counts
3 → 9
Calls
3 calls:
93.0ms
(fma (- x) (* 1.0 (/ (cos B) (sin B))) (/ 1.0 (sin B)))
20.0ms
(/ 1.0 (sin B))
18.0ms
(/ (cos B) (sin B))

simplify60.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 3 (54.0ms)

IterNodesCost
0241480
1721438
22196438
35001433

prune228.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(- 1 (* x (cos B)))
0.1b
(/ 1.0 (sin B))
0.2b
(* (/ 1.0 (sin B)) (- 1 (* x (cos B))))
0.2b
(* x (cos B))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
26×add-cube-cbrt *-un-lft-identity
19×times-frac
16×associate-*l*
13×add-exp-log add-cbrt-cube
prod-diff
pow1
associate-*r* add-log-exp
distribute-rgt-in distribute-lft-in
expm1-log1p-u log1p-expm1-u
sub-neg flip3-- fma-neg prod-exp associate-/r* flip-- cbrt-unprod associate-/l* unswap-sqr
cbrt-undiv frac-times associate-*r/ div-exp pow-prod-down *-commutative div-inv
frac-2neg diff-log associate-*l/ clear-num
Counts
4 → 117
Calls
4 calls:
2.0ms
(- 1 (* x (cos B)))
2.0ms
(/ 1.0 (sin B))
13.0ms
(* (/ 1.0 (sin B)) (- 1 (* x (cos B))))
3.0ms
(* x (cos B))

series167.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(- 1 (* x (cos B)))
18.0ms
(/ 1.0 (sin B))
73.0ms
(* (/ 1.0 (sin B)) (- 1 (* x (cos B))))
39.0ms
(* x (cos B))

simplify63.0ms

Algorithm
egg-herbie
Counts
129 → 129
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
0423840
12117739
25002734

prune297.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(- 1 (* x (cos B)))
0.2b
(/ (* 1.0 (- 1 (* x (cos B)))) (sin B))
0.2b
(* x (cos B))

rewrite15.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
10×add-exp-log add-cbrt-cube
add-cube-cbrt *-un-lft-identity
pow1 add-log-exp
expm1-log1p-u times-frac fma-neg associate-*r* associate-*l* prod-diff associate-/r* log1p-expm1-u
cbrt-undiv flip3-- associate-*r/ div-exp prod-exp flip-- cbrt-unprod associate-/l/
sub-neg frac-2neg diff-log pow-prod-down clear-num *-commutative div-inv associate-/l* unswap-sqr
Counts
3 → 65
Calls
3 calls:
2.0ms
(- 1 (* x (cos B)))
7.0ms
(/ (* 1.0 (- 1 (* x (cos B)))) (sin B))
3.0ms
(* x (cos B))

series154.0ms

Counts
3 → 9
Calls
3 calls:
37.0ms
(- 1 (* x (cos B)))
76.0ms
(/ (* 1.0 (- 1 (* x (cos B)))) (sin B))
40.0ms
(* x (cos B))

simplify41.0ms

Algorithm
egg-herbie
Counts
74 → 74
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0301437
11366372
25001368

prune169.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.0b

regimes67.0ms

Accuracy

0% (0.2b 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
0157
1157

end0.0ms

sample2.4s

Algorithm
intervals
Results
1.1s1783×body1280valid
486.0ms1344×body640valid
420.0ms4922×body80valid
168.0ms695×body320valid
65.0ms356×body160valid