Details

Time bar (total: 8.6s)

analyze747.0ms (8.7%)

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)

sample88.0ms (1%)

Algorithm
intervals
Results
19.0ms45×body1280valid
15.0ms149×body80valid
14.0ms31×body1280invalid
11.0ms37×body640valid
7.0ms24×body640invalid
4.0ms18×body320valid
2.0ms11×body320invalid
1.0msbody160valid
1.0msbody160invalid
1.0ms11×body80invalid
Compiler

Compiled 39 to 34 computations (12.8% saved)

simplify24.0ms (0.3%)

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (10.0ms)

IterNodesCost
010620
110620

prune5.0ms (0.1%)

Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.4b

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

rewrite34.0ms (0.4%)

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt_binary64
38×times-frac_binary64
32×*-un-lft-identity_binary64 add-cube-cbrt_binary64
22×associate-*r*_binary64 sqrt-prod_binary64
10×add-exp-log_binary64 add-cbrt-cube_binary64
associate-/r*_binary64
add-log-exp_binary64 pow1_binary64
associate-*l*_binary64 unswap-sqr_binary64 associate-/l*_binary64 insert-posit16
flip3-+_binary64 associate-/l/_binary64 cbrt-unprod_binary64 cbrt-undiv_binary64 prod-exp_binary64 div-inv_binary64 div-exp_binary64 flip-+_binary64
pow-prod-down_binary64 associate-*r/_binary64 clear-num_binary64 frac-2neg_binary64 +-commutative_binary64 sum-log_binary64 *-commutative_binary64
Counts
3 → 97
Calls

3 calls:

15.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
9.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
5.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

series452.0ms (5.2%)

Counts
3 → 9
Calls

3 calls:

307.0ms
(*.f64 (cos.f64 th) (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2)))
105.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (sqrt.f64 2))
39.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify90.0ms (1%)

Algorithm
egg-herbie
Counts
106 → 106
Iterations

Useful iterations: 0 (56.0ms)

IterNodesCost
053302431

prune131.0ms (1.5%)

Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New997106
Fresh011
Picked101
Done000
Total1008108

Merged error: 0b

Counts
108 → 8
Compiler

Compiled 2493 to 977 computations (60.8% saved)

localize13.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))))
7.5b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
7.5b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite82.0ms (1%)

Algorithm
rewrite-expression-head
Rules
540×times-frac_binary64
429×sqrt-prod_binary64
297×add-sqr-sqrt_binary64
295×*-un-lft-identity_binary64 add-cube-cbrt_binary64
48×associate-/r*_binary64
22×sqrt-div_binary64
17×associate-/r/_binary64
12×associate-/l*_binary64
11×flip3-+_binary64 add-exp-log_binary64 add-cbrt-cube_binary64 flip-+_binary64
div-inv_binary64
pow1_binary64
add-log-exp_binary64 cbrt-undiv_binary64 div-exp_binary64 insert-posit16
sqrt-undiv_binary64
associate-/l/_binary64 pow1/2_binary64 sqrt-pow1_binary64 rem-sqrt-square_binary64 clear-num_binary64 frac-2neg_binary64
Counts
4 → 415
Calls

4 calls:

25.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))
13.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))
6.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
5.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

series281.0ms (3.3%)

Counts
4 → 12
Calls

4 calls:

99.0ms
(/.f64 (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))) (/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))))
82.0ms
(/.f64 (sqrt.f64 2) (sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2))))
53.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
47.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify257.0ms (3%)

Algorithm
egg-herbie
Counts
427 → 427
Iterations

Useful iterations: 0 (102.0ms)

IterNodesCost
0506217900

prune543.0ms (6.3%)

Pruning

8 alts after pruning (7 fresh and 1 done)

PrunedKeptTotal
New4270427
Fresh077
Picked011
Done000
Total4278435

Merged error: 0b

Counts
435 → 8
Compiler

Compiled 15093 to 4393 computations (70.9% saved)

localize14.0ms (0.2%)

Local error

Found 4 expressions with local error:

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

rewrite89.0ms (1%)

Algorithm
rewrite-expression-head
Rules
195×times-frac_binary64
111×add-sqr-sqrt_binary64
94×cbrt-prod_binary64
91×*-un-lft-identity_binary64 add-cube-cbrt_binary64
67×associate-*r*_binary64
47×sqrt-prod_binary64
32×add-exp-log_binary64
22×div-inv_binary64
20×add-cbrt-cube_binary64
12×cbrt-undiv_binary64 div-exp_binary64
10×associate-/r*_binary64 associate-/l*_binary64
cbrt-unprod_binary64 unswap-sqr_binary64 prod-exp_binary64
add-log-exp_binary64 pow1_binary64
insert-posit16
associate-/l/_binary64 associate-*l*_binary64
flip3-+_binary64 clear-num_binary64 frac-2neg_binary64 flip-+_binary64
pow-prod-down_binary64 associate-*r/_binary64 +-commutative_binary64 sum-log_binary64 *-commutative_binary64
Counts
4 → 229
Calls

4 calls:

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

series775.0ms (9%)

Counts
4 → 12
Calls

4 calls:

324.0ms
(/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
303.0ms
(*.f64 (cos.f64 th) (/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
108.0ms
(/.f64 (/.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2)))
40.0ms
(+.f64 (*.f64 a1 a1) (*.f64 a2 a2))

simplify193.0ms (2.2%)

Algorithm
egg-herbie
Counts
241 → 241
Iterations

Useful iterations: 0 (114.0ms)

IterNodesCost
049458144
149458144

prune412.0ms (4.8%)

Pruning

8 alts after pruning (6 fresh and 2 done)

PrunedKeptTotal
New2410241
Fresh066
Picked011
Done011
Total2418249

Merged error: 0b

Counts
249 → 8
Compiler

Compiled 7738 to 4342 computations (43.9% saved)

localize16.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))))
7.5b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))
7.5b
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

rewrite72.0ms (0.8%)

Algorithm
rewrite-expression-head
Rules
108×times-frac_binary64
102×sqrt-prod_binary64
86×add-sqr-sqrt_binary64
84×*-un-lft-identity_binary64 add-cube-cbrt_binary64
78×cbrt-prod_binary64
58×associate-*r*_binary64
38×add-exp-log_binary64
29×add-cbrt-cube_binary64
16×cbrt-unprod_binary64 prod-exp_binary64
11×pow1_binary64
associate-/r*_binary64 cbrt-undiv_binary64 div-exp_binary64
associate-/l*_binary64 sqrt-div_binary64
add-log-exp_binary64 insert-posit16
pow-prod-down_binary64 flip3-+_binary64 flip-+_binary64 associate-*l/_binary64
associate-/l/_binary64 pow1/2_binary64 sqrt-pow1_binary64 rem-sqrt-square_binary64 div-inv_binary64
associate-*r/_binary64 associate-*l*_binary64 clear-num_binary64 frac-2neg_binary64 frac-times_binary64 *-commutative_binary64
Counts
4 → 205
Calls

4 calls:

39.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))))
11.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)))
5.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

series541.0ms (6.3%)

Counts
4 → 12
Calls

4 calls:

231.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))))
213.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)))
45.0ms
(sqrt.f64 (+.f64 (*.f64 a1 a1) (*.f64 a2 a2)))

simplify222.0ms (2.6%)

Algorithm
egg-herbie
Counts
217 → 217
Iterations

Useful iterations: 0 (150.0ms)

IterNodesCost
049597059
149597059

prune350.0ms (4.1%)

Pruning

8 alts after pruning (5 fresh and 3 done)

PrunedKeptTotal
New2170217
Fresh055
Picked011
Done022
Total2178225

Merged error: 0b

Counts
225 → 8
Compiler

Compiled 8379 to 3665 computations (56.3% saved)

regimes164.0ms (1.9%)

Compiler

Compiled 1630 to 1190 computations (27% saved)

bsearch0.0ms (0%)

simplify7.0ms (0.1%)

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (2.0ms)

IterNodesCost
01636
11636

end0.0ms (0%)

sample3.0s (34.8%)

Algorithm
intervals
Results
589.0ms1333×body1280valid
526.0ms1191×body1280invalid
357.0ms4758×body80valid
331.0ms1083×body640valid
313.0ms1008×body640invalid
124.0ms567×body320valid
102.0ms445×body320invalid
39.0ms259×body160valid
39.0ms487×body80invalid
39.0ms259×body160invalid
Compiler

Compiled 238 to 170 computations (28.6% saved)

Profiling

Loading profile data...