Details

Time bar (total: 7.9s)

analyze770.0ms (9.8%)

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)

sample84.0ms (1.1%)

Algorithm
intervals
Results
23.0ms65×body1024valid
18.0ms58×body1024invalid
11.0ms146×body128valid
6.0ms24×body512invalid
5.0ms24×body512valid
3.0ms21×body256valid
3.0ms16×body256invalid
1.0ms14×body128invalid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify104.0ms (1.3%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (4.0ms)

IterNodesCost
010620
110620

prune8.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022
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.2b
(*.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))

rewrite32.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:

12.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
7.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
4.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

series256.0ms (3.3%)

Counts
3 → 9
Calls

3 calls:

177.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
55.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
23.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify76.0ms (1%)

Algorithm
egg-herbie
Counts
103 → 103
Iterations

Useful iterations: 0 (49.0ms)

IterNodesCost
049772380
149772380

prune124.0ms (1.6%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New967103
Fresh011
Picked101
Done000
Total978105
Error
0b
Counts
105 → 8
Compiler

Compiled 2448 to 963 computations (60.7% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.2b
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))
0.4b
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))
6.2b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
6.2b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite109.0ms (1.4%)

Algorithm
rewrite-expression-head
Rules
540×times-frac_binary64_425
429×sqrt-prod_binary64_435
297×add-sqr-sqrt_binary64_441
295×*-un-lft-identity_binary64_419 add-cube-cbrt_binary64_454
48×associate-/r*_binary64_363
22×sqrt-div_binary64_436
17×associate-/r/_binary64_365
12×associate-/l*_binary64_364
11×flip3-+_binary64_422 flip-+_binary64_393 add-cbrt-cube_binary64_455 add-exp-log_binary64_457
div-inv_binary64_416
pow1_binary64_480
add-log-exp_binary64_458 div-exp_binary64_470 cbrt-undiv_binary64_453
sqrt-undiv_binary64_440
clear-num_binary64_418 pow1/2_binary64_499 frac-2neg_binary64_430 sqrt-pow1_binary64_437 rem-sqrt-square_binary64_432 associate-/l/_binary64_366
Counts
4 → 411
Calls

4 calls:

22.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))
8.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

series160.0ms (2%)

Counts
4 → 12
Calls

4 calls:

59.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))
52.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))
25.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
24.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify242.0ms (3.1%)

Algorithm
egg-herbie
Counts
423 → 423
Iterations

Useful iterations: 0 (92.0ms)

IterNodesCost
0492216317
1492216317

prune496.0ms (6.3%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New4230423
Fresh077
Picked011
Done000
Total4238431
Error
0b
Counts
431 → 8
Compiler

Compiled 14071 to 4356 computations (69% saved)

localize15.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 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
6.2b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
6.2b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite93.0ms (1.2%)

Algorithm
rewrite-expression-head
Rules
149×add-sqr-sqrt_binary64_441
146×times-frac_binary64_425
127×sqrt-prod_binary64_435
90×cbrt-prod_binary64_450
87×*-un-lft-identity_binary64_419 add-cube-cbrt_binary64_454
58×associate-*r*_binary64_359
27×add-exp-log_binary64_457
21×unswap-sqr_binary64_387
19×add-cbrt-cube_binary64_455
10×associate-*l*_binary64_360
associate-/r*_binary64_363
prod-exp_binary64_468 cbrt-unprod_binary64_452 pow1_binary64_480 div-exp_binary64_470 cbrt-undiv_binary64_453
sqrt-div_binary64_436 associate-/l*_binary64_364
add-log-exp_binary64_458
flip3-+_binary64_422 div-inv_binary64_416 flip-+_binary64_393
pow1/2_binary64_499 sqrt-pow1_binary64_437 rem-sqrt-square_binary64_432 associate-/l/_binary64_366
associate-*l/_binary64_362 pow-prod-down_binary64_490 clear-num_binary64_418 frac-times_binary64_429 associate-*r/_binary64_361 *-commutative_binary64_350 frac-2neg_binary64_430
Counts
4 → 226
Calls

4 calls:

40.0ms
(*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
9.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

series221.0ms (2.8%)

Counts
4 → 12
Calls

4 calls:

110.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
62.0ms
(*.f64 (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
24.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
24.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify115.0ms (1.5%)

Algorithm
egg-herbie
Counts
238 → 238
Iterations

Useful iterations: 0 (40.0ms)

IterNodesCost
051818434

prune412.0ms (5.2%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New2380238
Fresh066
Picked011
Done011
Total2388246
Error
0b
Counts
246 → 8
Compiler

Compiled 9735 to 4507 computations (53.7% saved)

localize11.0ms (0.1%)

Local error

Found 4 expressions with local error:

0.3b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
0.3b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
0.7b
(/.f64 (cos.f64 th) (sqrt.f64 2))
0.7b
(/.f64 (cos.f64 th) (sqrt.f64 2))

rewrite47.0ms (0.6%)

Algorithm
rewrite-expression-head
Rules
76×times-frac_binary64_425
70×add-sqr-sqrt_binary64_441
60×*-un-lft-identity_binary64_419 add-cube-cbrt_binary64_454
44×associate-*l*_binary64_360 sqrt-prod_binary64_435
32×add-cbrt-cube_binary64_455 add-exp-log_binary64_457
14×pow1_binary64_480
12×prod-exp_binary64_468 cbrt-unprod_binary64_452 associate-/r*_binary64_363
pow-prod-down_binary64_490 unswap-sqr_binary64_387 div-exp_binary64_470 associate-/l*_binary64_364 cbrt-undiv_binary64_453
add-log-exp_binary64_458 div-inv_binary64_416
associate-*l/_binary64_362 clear-num_binary64_418 associate-*r*_binary64_359 *-commutative_binary64_350 frac-2neg_binary64_430
Counts
4 → 168
Calls

4 calls:

10.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
10.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
5.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))
5.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

series217.0ms (2.8%)

Counts
4 → 12
Calls

4 calls:

76.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2))
73.0ms
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1))
35.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))
34.0ms
(/.f64 (cos.f64 th) (sqrt.f64 2))

simplify113.0ms (1.4%)

Algorithm
egg-herbie
Counts
180 → 180
Iterations

Useful iterations: 0 (81.0ms)

IterNodesCost
049642940
149642940

prune221.0ms (2.8%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New1791180
Fresh145
Picked011
Done022
Total1808188
Error
0b
Counts
188 → 8
Compiler

Compiled 4606 to 2431 computations (47.2% saved)

regimes651.0ms (8.3%)

Accuracy

Total 0.5b remaining (99.4%)

Threshold costs 0.5b (99.4%)

Compiler

Compiled 8401 to 5991 computations (28.7% saved)

bsearch0.0ms (0%)

simplify2.0ms (0%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01420
11420

end0.0ms (0%)

sample3.3s (41.5%)

Algorithm
intervals
Results
582.0ms1799×body1024valid
483.0ms1522×body1024invalid
393.0ms4912×body128valid
202.0ms843×body512valid
189.0ms823×body512invalid
69.0ms441×body256valid
66.0ms393×body256invalid
51.0ms622×body128invalid
2.0msbody2048valid
0.0msbody2048invalid
Compiler

Compiled 1065 to 760 computations (28.6% saved)

Profiling

Loading profile data...