Details

Time bar (total: 15.3s)

analyze1.3s (8.4%)

Algorithm
search
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
027980
127980
033
133
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
Symmetry

(sort a1 a2)

Compiler

Compiled 20 to 16 computations (20% saved)

sample111.0ms (0.7%)

Algorithm
intervals
Results
26.0ms65×body1024invalid
21.0ms60×body1024valid
12.0ms153×body128valid
9.0ms32×body512valid
7.0ms29×body512invalid
2.0ms12×body256invalid
2.0ms23×body128invalid
2.0ms10×body256valid
0.0msbody2048valid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify13.0ms (0.1%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (7.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.4b
Counts
2 → 2
Compiler

Compiled 45 to 37 computations (17.8% saved)

localize9.0ms (0.1%)

Local error

Found 2 expressions with local error:

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))

rewrite152.0ms (1%)

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

2 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))
Compiler

Compiled 2118 to 796 computations (62.4% saved)

series753.0ms (4.9%)

Error
0.3b
Counts
2 → 30
Calls

2 calls:

470.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
250.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
Compiler

Compiled 1334 to 1170 computations (12.3% saved)

simplify80.0ms (0.5%)

Algorithm
egg-herbie
Counts
113 → 113
Iterations

Useful iterations: 0 (41.0ms)

IterNodesCost
053392746

prune163.0ms (1.1%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1058113
Fresh101
Picked101
Done000
Total1078115
Error
0b
Counts
115 → 8
Compiler

Compiled 2579 to 1063 computations (58.8% saved)

localize15.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

rewrite75.0ms (0.5%)

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

2 calls:

10.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th)) (sqrt.f64 2))
7.0ms
(*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th))
Compiler

Compiled 1103 to 358 computations (67.5% saved)

series848.0ms (5.5%)

Error
0b
Counts
2 → 36
Calls

2 calls:

476.0ms
(/.f64 (*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th)) (sqrt.f64 2))
321.0ms
(*.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (cos.f64 th))
Compiler

Compiled 1732 to 1472 computations (15% saved)

simplify85.0ms (0.6%)

Algorithm
egg-herbie
Counts
85 → 85
Iterations

Useful iterations: 0 (54.0ms)

IterNodesCost
049731803
149731803

prune98.0ms (0.6%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New84185
Fresh167
Picked011
Done000
Total85893
Error
0b
Counts
93 → 8
Compiler

Compiled 1686 to 705 computations (58.2% saved)

localize9.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

rewrite207.0ms (1.4%)

Algorithm
rewrite-expression-head
Error
0b
Rules
156×times-frac_binary64_425
92×add-cube-cbrt_binary64_454 add-sqr-sqrt_binary64_441 *-un-lft-identity_binary64_419
48×sqrt-prod_binary64_435
25×associate-/r*_binary64_363
add-exp-log_binary64_457 add-cbrt-cube_binary64_455 associate-/l*_binary64_364
div-inv_binary64_416
div-exp_binary64_470 cbrt-undiv_binary64_453
pow1_binary64_480 add-log-exp_binary64_458 frac-2neg_binary64_430 clear-num_binary64_418 associate-/l/_binary64_366
flip3-+_binary64_422 flip-+_binary64_393 associate-/r/_binary64_365
Counts
2 → 147
Calls

2 calls:

13.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
4.0ms
(/.f64 (sqrt.f64 2) (cos.f64 th))
Compiler

Compiled 4005 to 1547 computations (61.4% saved)

series572.0ms (3.7%)

Error
0b
Counts
2 → 24
Calls

2 calls:

474.0ms
(/.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)) (/.f64 (sqrt.f64 2) (cos.f64 th)))
71.0ms
(/.f64 (sqrt.f64 2) (cos.f64 th))
Compiler

Compiled 1204 to 1009 computations (16.2% saved)

simplify135.0ms (0.9%)

Algorithm
egg-herbie
Counts
171 → 171
Iterations

Useful iterations: 0 (61.0ms)

IterNodesCost
049725346
149725346

prune212.0ms (1.4%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New1683171
Fresh336
Picked011
Done011
Total1718179
Error
0b
Counts
179 → 8
Compiler

Compiled 4251 to 1611 computations (62.1% saved)

localize19.0ms (0.1%)

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 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.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.4b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
6.4b
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))

rewrite587.0ms (3.8%)

Algorithm
rewrite-expression-head
Error
0b
Rules
108×times-frac_binary64_425
102×sqrt-prod_binary64_435
86×add-sqr-sqrt_binary64_441
84×add-cube-cbrt_binary64_454 *-un-lft-identity_binary64_419
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
div-exp_binary64_470 cbrt-undiv_binary64_453 associate-/r*_binary64_363
sqrt-div_binary64_436 associate-/l*_binary64_364
add-log-exp_binary64_458
flip3-+_binary64_422 flip-+_binary64_393 pow-prod-down_binary64_490 associate-*r/_binary64_361
pow1/2_binary64_499 sqrt-pow1_binary64_437 rem-sqrt-square_binary64_432 div-inv_binary64_416 associate-/l/_binary64_366
frac-times_binary64_429 associate-*l/_binary64_362 associate-*l*_binary64_360 *-commutative_binary64_350 frac-2neg_binary64_430 clear-num_binary64_418
Counts
4 → 201
Calls

4 calls:

35.0ms
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.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))))
10.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
4.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
Compiler

Compiled 9640 to 4180 computations (56.6% saved)

series1.3s (8.6%)

Error
0b
Counts
4 → 60
Calls

4 calls:

575.0ms
(*.f64 (*.f64 (cos.f64 th) (/.f64 (sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1))) (*.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))))
390.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
124.0ms
(sqrt.f64 (+.f64 (*.f64 a2 a2) (*.f64 a1 a1)))
117.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
Compiler

Compiled 4679 to 3717 computations (20.6% saved)

simplify160.0ms (1%)

Algorithm
egg-herbie
Counts
261 → 261
Iterations

Useful iterations: 0 (67.0ms)

IterNodesCost
049738454
149738454

prune530.0ms (3.5%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New2610261
Fresh055
Picked011
Done022
Total2618269
Error
0b
Counts
269 → 8
Compiler

Compiled 9921 to 4609 computations (53.5% saved)

regimes2.1s (14.1%)

Accuracy

Total 0.4b remaining (93.4%)

Threshold costs 0.4b (93.4%)

Compiler

Compiled 21682 to 16066 computations (25.9% saved)

bsearch0.0ms (0%)

simplify14.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01420
11420
Remove

(sort a1 a2)

Compiler

Compiled 26 to 22 computations (15.4% saved)

end0.0ms (0%)

sample5.7s (37.2%)

Algorithm
intervals
Results
649.0ms1733×body1024valid
608.0ms1603×body1024invalid
435.0ms4952×body128valid
239.0ms877×body512valid
232.0ms839×body512invalid
77.0ms435×body256valid
76.0ms389×body256invalid
63.0ms633×body128invalid
2.0msbody2048valid
Compiler

Compiled 2721 to 2015 computations (25.9% saved)

Profiling

Loading profile data...