Details

Time bar (total: 9.1s)

analyze1.1s (11.6%)

Algorithm
search
Search
TrueOtherFalseIter
0%99.9%0.1%0
0%99.9%0.1%1
0%99.9%0.1%2
0%99.9%0.1%3
0%99.9%0.1%4
0%99.9%0.1%5
0%99.9%0.1%6
6.2%93.6%0.1%7
9.4%90.5%0.1%8
14%85.8%0.1%9
19.5%80.4%0.1%10
20.7%79.2%0.1%11
22%77.8%0.1%12
23.5%76.4%0.1%13
23.8%76%0.1%14
Compiler

Compiled 10 to 9 computations (10% saved)

sample75.0ms (0.8%)

Algorithm
intervals
Results
40.0ms111×body1024valid
9.0ms39×body512valid
8.0msbody2048valid
6.0ms78×body128valid
3.0ms19×body256valid
Compiler

Compiled 19 to 20 computations (-5.3% saved)

simplify167.0ms (1.8%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
02114
12114

prune2.0ms (0%)

Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New101
Fresh011
Picked000
Done000
Total112

Merged error: 15.7b

Counts
2 → 1
Compiler

Compiled 18 to 16 computations (11.1% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

0.2b
(/.f64 (sin.f64 b) (cos.f64 (+.f64 a b)))
0.2b
(*.f64 r (/.f64 (sin.f64 b) (cos.f64 (+.f64 a b))))
4.1b
(cos.f64 (+.f64 a b))

rewrite24.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
24×add-sqr-sqrt_binary64_445
19×*-un-lft-identity_binary64_423 times-frac_binary64_429 add-cube-cbrt_binary64_458
13×associate-*r*_binary64_363
10×add-exp-log_binary64_461 add-cbrt-cube_binary64_459
pow1_binary64_484
associate-*l*_binary64_364 add-log-exp_binary64_462 associate-/l*_binary64_368 associate-/r*_binary64_367
prod-exp_binary64_472 div-inv_binary64_420 unswap-sqr_binary64_391 cbrt-undiv_binary64_457 div-exp_binary64_474 cbrt-unprod_binary64_456
pow-prod-down_binary64_494 cos-sum_binary64_557 associate-*r/_binary64_365 *-commutative_binary64_354 clear-num_binary64_422 frac-2neg_binary64_434
Counts
3 → 67
Calls

3 calls:

9.0ms
(*.f64 r (/.f64 (sin.f64 b) (cos.f64 (+.f64 a b))))
5.0ms
(cos.f64 (+.f64 a b))
5.0ms
(/.f64 (sin.f64 b) (cos.f64 (+.f64 a b)))

series352.0ms (3.9%)

Counts
3 → 9
Calls

3 calls:

227.0ms
(*.f64 r (/.f64 (sin.f64 b) (cos.f64 (+.f64 a b))))
98.0ms
(/.f64 (sin.f64 b) (cos.f64 (+.f64 a b)))
27.0ms
(cos.f64 (+.f64 a b))

simplify92.0ms (1%)

Algorithm
egg-herbie
Counts
76 → 76
Iterations

Useful iterations: 0 (76.0ms)

IterNodesCost
057641258

prune300.0ms (3.3%)

Pruning

11 alts after pruning (11 fresh and 0 done)

PrunedKeptTotal
New651176
Fresh000
Picked101
Done000
Total661177

Merged error: 0.2b

Counts
77 → 11
Compiler

Compiled 5205 to 2601 computations (50% saved)

localize15.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

rewrite47.0ms (0.5%)

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt_binary64_445
22×*-un-lft-identity_binary64_423 add-cube-cbrt_binary64_458
20×associate-*r*_binary64_363
19×times-frac_binary64_429
13×add-exp-log_binary64_461 add-cbrt-cube_binary64_459
pow1_binary64_484 associate-/r/_binary64_369
sin-mult_binary64_578
associate-*l*_binary64_364 cos-mult_binary64_577 add-log-exp_binary64_462
prod-exp_binary64_472 flip3--_binary64_427 flip--_binary64_398 unswap-sqr_binary64_391 sub-div_binary64_430 associate-/l*_binary64_368 associate-/r*_binary64_367 frac-sub_binary64_432 cbrt-unprod_binary64_456
pow-prod-down_binary64_494 *-commutative_binary64_354 div-inv_binary64_420 cbrt-undiv_binary64_457 div-exp_binary64_474
sub-neg_binary64_416 diff-log_binary64_515 cancel-sign-sub-inv_binary64_389 associate-*r/_binary64_365 clear-num_binary64_422 frac-2neg_binary64_434
Counts
4 → 100
Calls

4 calls:

14.0ms
(*.f64 r (/.f64 (sin.f64 b) (-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b)))))
9.0ms
(/.f64 (sin.f64 b) (-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b))))
8.0ms
(-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b)))
5.0ms
(*.f64 (sin.f64 a) (sin.f64 b))

series971.0ms (10.7%)

Counts
4 → 12
Calls

4 calls:

480.0ms
(*.f64 r (/.f64 (sin.f64 b) (-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b)))))
272.0ms
(/.f64 (sin.f64 b) (-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b))))
144.0ms
(-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b)))
74.0ms
(*.f64 (sin.f64 a) (sin.f64 b))

simplify81.0ms (0.9%)

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 0 (55.0ms)

IterNodesCost
054422752

prune686.0ms (7.6%)

Pruning

14 alts after pruning (13 fresh and 1 done)

PrunedKeptTotal
New10111112
Fresh8210
Picked011
Done000
Total10914123

Merged error: 0.0b

Counts
123 → 14
Compiler

Compiled 13538 to 6330 computations (53.2% saved)

localize15.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

rewrite33.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt_binary64_445
13×add-exp-log_binary64_461 add-cbrt-cube_binary64_459
10×*-un-lft-identity_binary64_423 add-cube-cbrt_binary64_458
pow1_binary64_484
associate-*l*_binary64_364 associate-*r*_binary64_363 add-log-exp_binary64_462
sin-mult_binary64_578
cos-mult_binary64_577 associate-/r/_binary64_369
times-frac_binary64_429 prod-exp_binary64_472 associate-/r*_binary64_367 cbrt-unprod_binary64_456
pow-prod-down_binary64_494 flip3--_binary64_427 *-commutative_binary64_354 flip--_binary64_398 unswap-sqr_binary64_391 sub-div_binary64_430 cbrt-undiv_binary64_457 div-exp_binary64_474 frac-sub_binary64_432
sub-neg_binary64_416 diff-log_binary64_515 cancel-sign-sub-inv_binary64_389 clear-num_binary64_422 frac-2neg_binary64_434 div-inv_binary64_420 associate-/l*_binary64_368
Counts
4 → 76
Calls

4 calls:

10.0ms
(/.f64 (*.f64 (sin.f64 b) r) (-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b))))
6.0ms
(-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b)))
5.0ms
(*.f64 (sin.f64 a) (sin.f64 b))
5.0ms
(*.f64 (sin.f64 b) r)

series828.0ms (9.2%)

Counts
4 → 12
Calls

4 calls:

542.0ms
(/.f64 (*.f64 (sin.f64 b) r) (-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b))))
154.0ms
(-.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (*.f64 (sin.f64 a) (sin.f64 b)))
78.0ms
(*.f64 (sin.f64 a) (sin.f64 b))
55.0ms
(*.f64 (sin.f64 b) r)

simplify57.0ms (0.6%)

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 0 (39.0ms)

IterNodesCost
051591643

prune170.0ms (1.9%)

Pruning

13 alts after pruning (11 fresh and 2 done)

PrunedKeptTotal
New87188
Fresh21012
Picked011
Done011
Total8913102

Merged error: 0.0b

Counts
102 → 13
Compiler

Compiled 3776 to 1298 computations (65.6% saved)

localize14.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

rewrite39.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt_binary64_445
29×*-un-lft-identity_binary64_423
19×add-cube-cbrt_binary64_458
18×times-frac_binary64_429
13×add-exp-log_binary64_461 add-cbrt-cube_binary64_459
associate-/r*_binary64_367
pow1_binary64_484 add-log-exp_binary64_462
distribute-lft-out--_binary64_375 difference-of-squares_binary64_392
associate-/l*_binary64_368
associate-*l*_binary64_364 cancel-sign-sub-inv_binary64_389 associate-*r*_binary64_363 cbrt-undiv_binary64_457 div-exp_binary64_474
prod-exp_binary64_472 flip3--_binary64_427 cos-mult_binary64_577 associate-/r/_binary64_369 clear-num_binary64_422 frac-2neg_binary64_434 flip--_binary64_398 div-inv_binary64_420 cbrt-unprod_binary64_456
pow-prod-down_binary64_494 sub-neg_binary64_416 diff-log_binary64_515 associate-/l/_binary64_370 *-commutative_binary64_354 unswap-sqr_binary64_391
Counts
4 → 94
Calls

4 calls:

11.0ms
(/.f64 r (-.f64 (/.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (sin.f64 b)) (sin.f64 a)))
9.0ms
(-.f64 (/.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (sin.f64 b)) (sin.f64 a))
6.0ms
(/.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (sin.f64 b))
5.0ms
(*.f64 (cos.f64 a) (cos.f64 b))

series875.0ms (9.7%)

Counts
4 → 12
Calls

4 calls:

471.0ms
(/.f64 r (-.f64 (/.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (sin.f64 b)) (sin.f64 a)))
187.0ms
(-.f64 (/.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (sin.f64 b)) (sin.f64 a))
149.0ms
(/.f64 (*.f64 (cos.f64 a) (cos.f64 b)) (sin.f64 b))
67.0ms
(*.f64 (cos.f64 a) (cos.f64 b))

simplify80.0ms (0.9%)

Algorithm
egg-herbie
Counts
106 → 106
Iterations

Useful iterations: 0 (56.0ms)

IterNodesCost
049292353
149292353

prune390.0ms (4.3%)

Pruning

13 alts after pruning (10 fresh and 3 done)

PrunedKeptTotal
New1033106
Fresh3710
Picked011
Done022
Total10613119

Merged error: 0.0b

Counts
119 → 13
Compiler

Compiled 7936 to 3447 computations (56.6% saved)

regimes93.0ms (1%)

Compiler

Compiled 1038 to 549 computations (47.1% saved)

bsearch0.0ms (0%)

simplify3.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
04226
14226

end0.0ms (0%)

sample2.6s (28.5%)

Algorithm
intervals
Results
1.3s3471×body1024valid
304.0ms1365×body512valid
200.0ms224×body2048valid
187.0ms2354×body128valid
96.0ms586×body256valid
0.0msbody512invalid
0.0msbody1024invalid
Compiler

Compiled 370 to 201 computations (45.7% saved)

Profiling

Loading profile data...