Details

Time bar (total: 10.0s)

analyze746.0ms (7.5%)

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
25%74.9%0.1%6
25%74.9%0.1%7
25%74.9%0.1%8
25%74.9%0.1%9
25%64%11.1%10
31.2%54.6%14.2%11
39%44.1%16.9%12
39%41.5%19.5%13
42.9%37%20.1%14
Compiler

Compiled 20 to 16 computations (20% saved)

sample82.0ms (0.8%)

Algorithm
intervals
Results
21.0ms61×body1024valid
17.0ms49×body1024invalid
11.0ms150×body128valid
7.0ms31×body512invalid
7.0ms29×body512valid
2.0ms16×body256valid
2.0ms16×body256invalid
1.0ms19×body128invalid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify180.0ms (1.8%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (4.0ms)

IterNodesCost
010620
110620

prune4.0ms (0%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.3b

Counts
2 → 2
Compiler

Compiled 45 to 37 computations (17.8% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

0.0b
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
0.1b
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
0.4b
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))

rewrite38.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt_binary64_441
38×times-frac_binary64_425
32×*-un-lft-identity_binary64_419 add-cube-cbrt_binary64_454
22×associate-*r*_binary64_359 sqrt-prod_binary64_435
10×add-cbrt-cube_binary64_455 add-exp-log_binary64_457
associate-/r*_binary64_363
add-log-exp_binary64_458 pow1_binary64_480
unswap-sqr_binary64_387 associate-*l*_binary64_360 associate-/l*_binary64_364
flip3-+_binary64_422 div-inv_binary64_416 prod-exp_binary64_468 cbrt-unprod_binary64_452 flip-+_binary64_393 div-exp_binary64_470 cbrt-undiv_binary64_453 associate-/l/_binary64_366
pow-prod-down_binary64_490 clear-num_binary64_418 sum-log_binary64_510 associate-*r/_binary64_361 *-commutative_binary64_350 frac-2neg_binary64_430 +-commutative_binary64_349
Counts
3 → 94
Calls

3 calls:

13.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
8.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
5.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

series484.0ms (4.9%)

Counts
3 → 9
Calls

3 calls:

340.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
104.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
41.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify75.0ms (0.8%)

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 0 (48.0ms)

IterNodesCost
049652380
149652380

prune125.0ms (1.3%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New967103
Fresh011
Picked101
Done000
Total978105

Merged error: 0b

Counts
105 → 8
Compiler

Compiled 2420 to 947 computations (60.9% saved)

localize10.0ms (0.1%)

Local error

Found 3 expressions with local error:

0.0b
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
0.1b
(*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th))
0.4b
(/.f64 (*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))

rewrite27.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt_binary64_441
10×add-cbrt-cube_binary64_455 add-exp-log_binary64_457
*-un-lft-identity_binary64_419 add-cube-cbrt_binary64_454
times-frac_binary64_425 sqrt-prod_binary64_435 associate-/r*_binary64_363
add-log-exp_binary64_458 pow1_binary64_480
associate-*l/_binary64_362
flip3-+_binary64_422 associate-*r*_binary64_359 associate-*l*_binary64_360 flip-+_binary64_393
prod-exp_binary64_468 cbrt-unprod_binary64_452 div-exp_binary64_470 cbrt-undiv_binary64_453 associate-/l/_binary64_366
pow-prod-down_binary64_490 clear-num_binary64_418 div-inv_binary64_416 unswap-sqr_binary64_387 sum-log_binary64_510 *-commutative_binary64_350 frac-2neg_binary64_430 +-commutative_binary64_349 associate-/l*_binary64_364
Counts
3 → 60
Calls

3 calls:

10.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))
8.0ms
(*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th))
4.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

series427.0ms (4.3%)

Counts
3 → 9
Calls

3 calls:

244.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th)) (sqrt.f64 2))
146.0ms
(*.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (cos.f64 th))
38.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify71.0ms (0.7%)

Algorithm
egg-herbie
Counts
69 → 69
Iterations

Useful iterations: 0 (54.0ms)

IterNodesCost
052821293

prune68.0ms (0.7%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New67269
Fresh257
Picked011
Done000
Total69877

Merged error: 0b

Counts
77 → 8
Compiler

Compiled 1413 to 550 computations (61.1% saved)

localize19.0ms (0.2%)

Local error

Found 4 expressions with local error:

0.2b
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
0.3b
(*.f64 (*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cos.f64 th)) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
4.7b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
4.7b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite86.0ms (0.9%)

Algorithm
rewrite-expression-head
Rules
108×times-frac_binary64_425
102×sqrt-prod_binary64_435
86×add-sqr-sqrt_binary64_441
84×*-un-lft-identity_binary64_419 add-cube-cbrt_binary64_454
78×cbrt-prod_binary64_450
58×associate-*r*_binary64_359
38×add-exp-log_binary64_457
29×add-cbrt-cube_binary64_455
16×prod-exp_binary64_468 cbrt-unprod_binary64_452
11×pow1_binary64_480
associate-/r*_binary64_363 div-exp_binary64_470 cbrt-undiv_binary64_453
sqrt-div_binary64_436 associate-/l*_binary64_364
add-log-exp_binary64_458
flip3-+_binary64_422 associate-*l/_binary64_362 pow-prod-down_binary64_490 flip-+_binary64_393
pow1/2_binary64_499 div-inv_binary64_416 sqrt-pow1_binary64_437 rem-sqrt-square_binary64_432 associate-/l/_binary64_366
clear-num_binary64_418 frac-times_binary64_429 associate-*r/_binary64_361 *-commutative_binary64_350 associate-*l*_binary64_360 frac-2neg_binary64_430
Counts
4 → 201
Calls

4 calls:

33.0ms
(*.f64 (*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cos.f64 th)) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
10.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
5.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

series606.0ms (6.1%)

Counts
4 → 12
Calls

4 calls:

262.0ms
(*.f64 (*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cos.f64 th)) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
242.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
53.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
49.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify142.0ms (1.4%)

Algorithm
egg-herbie
Counts
213 → 213
Iterations

Useful iterations: 0 (75.0ms)

IterNodesCost
049496988
149496988

prune361.0ms (3.6%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New2130213
Fresh066
Picked011
Done011
Total2138221

Merged error: 0b

Counts
221 → 8
Compiler

Compiled 8377 to 3701 computations (55.8% saved)

localize15.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.0b
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))
0.1b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.2b
(/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
0.3b
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))

rewrite277.0ms (2.8%)

Algorithm
rewrite-expression-head
Rules
1137×sqrt-prod_binary64_435
1119×times-frac_binary64_425
625×add-sqr-sqrt_binary64_441
578×*-un-lft-identity_binary64_419 add-cube-cbrt_binary64_454
283×associate-*r*_binary64_359
34×associate-/l*_binary64_364
22×div-inv_binary64_416
20×add-cbrt-cube_binary64_455 add-exp-log_binary64_457
18×associate-/r*_binary64_363
13×unswap-sqr_binary64_387
div-exp_binary64_470 cbrt-undiv_binary64_453
add-log-exp_binary64_458 pow1_binary64_480
prod-exp_binary64_468 cbrt-unprod_binary64_452 associate-*l*_binary64_360 associate-/l/_binary64_366
flip3-+_binary64_422 clear-num_binary64_418 frac-2neg_binary64_430 flip-+_binary64_393
pow-prod-down_binary64_490 sum-log_binary64_510 associate-*r/_binary64_361 *-commutative_binary64_350 +-commutative_binary64_349
Counts
4 → 713
Calls

4 calls:

90.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
21.0ms
(/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
10.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))
4.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

series606.0ms (6.1%)

Counts
4 → 12
Calls

4 calls:

319.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
140.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))
106.0ms
(/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2)))
40.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify267.0ms (2.7%)

Algorithm
egg-herbie
Counts
725 → 725
Iterations

Useful iterations: 0 (53.0ms)

IterNodesCost
0512026166

prune1.4s (14.1%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New7250725
Fresh055
Picked011
Done022
Total7258733

Merged error: 0b

Counts
733 → 8
Compiler

Compiled 23845 to 11749 computations (50.7% saved)

regimes606.0ms (6.1%)

Compiler

Compiled 6986 to 5207 computations (25.5% saved)

bsearch0.0ms (0%)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01420
11420

end0.0ms (0%)

sample3.2s (32.3%)

Algorithm
intervals
Results
643.0ms1829×body1024valid
526.0ms1506×body1024invalid
359.0ms4792×body128valid
210.0ms913×body512valid
175.0ms756×body512invalid
71.0ms465×body256valid
60.0ms391×body256invalid
53.0ms616×body128invalid
1.0msbody2048valid
Compiler

Compiled 891 to 664 computations (25.5% saved)

Profiling

Loading profile data...