Details

Time bar (total: 13.8s)

analyze1.5s (10.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 23 to 16 computations (30.4% saved)

sample118.0ms (0.8%)

Algorithm
intervals
Results
34.0ms73×body1024valid
26.0ms47×body1024invalid
14.0ms151×body128valid
6.0ms22×body512invalid
5.0ms19×body512valid
3.0ms13×body256valid
2.0ms12×body256invalid
2.0ms17×body128invalid
Compiler

Compiled 48 to 34 computations (29.2% saved)

simplify12.0ms (0.1%)

Algorithm
egg-herbie
Rules
32×fma-def_binary64
23×*-commutative_binary64
20×associate-/l*_binary64
11×associate-/r/_binary64
associate-*r/_binary64
Counts
1 → 2
Iterations

Useful iterations: 1 (0.0ms)

IterNodesCost
01320
12718
25318
37618
410318
511718
613218
713418
813618
913618

prune6.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.4b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
Compiler

Compiled 108 to 70 computations (35.2% saved)

localize9.0ms (0.1%)

Local error

Found 2 expressions with local error:

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

rewrite14.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
39×add-sqr-sqrt_binary64
38×times-frac_binary64
31×*-un-lft-identity_binary64
31×add-cube-cbrt_binary64
22×associate-*r*_binary64
Counts
2 → 85
Calls

2 calls:

7.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
3.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

series145.0ms (1%)

Counts
2 → 60
Calls

2 calls:

101.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
44.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))

simplify119.0ms (0.9%)

Algorithm
egg-herbie
Rules
456×associate-*l*_binary64
410×associate-*r*_binary64
396×fma-neg_binary64
332×associate-/l*_binary64
299×sub-neg_binary64
Counts
145 → 284
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01703315
13653012
212892968
343592968
450762968

prune140.0ms (1%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New2786284
Fresh011
Picked101
Done000
Total2797286
Error
0.0b
Counts
286 → 7
Alt Table
StatusErrorProgram
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.6b
(*.f64 (cos.f64 th) (*.f64 (/.f64 1 (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2)))))
0.5b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))))
0.5b
(*.f64 (*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
Compiler

Compiled 3727 to 1760 computations (52.8% saved)

localize12.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.1b
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
0.3b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
0.5b
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
5.0b
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

rewrite27.0ms (0.2%)

Algorithm
rewrite-expression-head
Rules
81×sqrt-prod_binary64
72×times-frac_binary64
65×add-sqr-sqrt_binary64
60×*-un-lft-identity_binary64
60×add-cube-cbrt_binary64
Counts
4 → 162
Calls

4 calls:

9.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
5.0ms
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
3.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
1.0ms
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

series339.0ms (2.5%)

Counts
4 → 120
Calls

4 calls:

258.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
44.0ms
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
23.0ms
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2))
14.0ms
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

simplify244.0ms (1.8%)

Algorithm
egg-herbie
Rules
621×fma-def_binary64
376×cancel-sign-sub-inv_binary64
345×associate-*l*_binary64
317×sub-neg_binary64
308×fma-neg_binary64
Counts
282 → 535
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
03477564
19366108
233646008
347996003
449326003
550386003

prune291.0ms (2.1%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New5323535
Fresh246
Picked101
Done000
Total5357542
Error
0b
Counts
542 → 7
Alt Table
StatusErrorProgram
0.6b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (*.f64 (/.f64 (sqrt.f64 (hypot.f64 a2 a1)) (sqrt.f64 (sqrt.f64 2))) (/.f64 (sqrt.f64 (hypot.f64 a2 a1)) (sqrt.f64 (sqrt.f64 2)))))
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
0.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.3b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
0.5b
(*.f64 (cos.f64 th) (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2))) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 (sqrt.f64 2)))))
0.5b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))) (sqrt.f64 (sqrt.f64 2))))
0.5b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
Compiler

Compiled 9301 to 3958 computations (57.4% saved)

localize13.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)
0.1b
(*.f64 (cos.f64 th) (hypot.f64 a2 a1))
0.3b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
5.2b
(sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2))

rewrite17.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt_binary64
28×times-frac_binary64
26×*-un-lft-identity_binary64
26×sqrt-prod_binary64
26×add-cube-cbrt_binary64
Counts
3 → 90
Calls

3 calls:

7.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
2.0ms
(sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2))
2.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)

series185.0ms (1.3%)

Counts
3 → 84
Calls

3 calls:

136.0ms
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
29.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)
19.0ms
(sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2))

simplify153.0ms (1.1%)

Algorithm
egg-herbie
Rules
767×times-frac_binary64
619×fma-neg_binary64
488×cancel-sign-sub-inv_binary64
293×associate-*r*_binary64
260×associate-*l*_binary64
Counts
174 → 334
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02935151
17524553
227413865
350003865
452833865

prune216.0ms (1.6%)

Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New4333436
Fresh426
Picked011
Done000
Total4376443
Error
0b
Counts
443 → 6
Alt Table
StatusErrorProgram
0.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.5b
(*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (sqrt.f64 1/2) (cos.f64 th)))
0.3b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
0.4b
(*.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (sqrt.f64 (/.f64 1 2)))
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))))
0.5b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
Compiler

Compiled 7783 to 3468 computations (55.4% saved)

localize15.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.5b
(*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
0.5b
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))
0.5b
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))
5.2b
(sqrt.f64 (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))

rewrite41.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
116×add-sqr-sqrt_binary64
114×times-frac_binary64
74×*-un-lft-identity_binary64
74×add-cube-cbrt_binary64
61×sqrt-prod_binary64
Counts
3 → 172
Calls

3 calls:

22.0ms
(*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
6.0ms
(sqrt.f64 (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))
3.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))

series165.0ms (1.2%)

Counts
3 → 72
Calls

3 calls:

114.0ms
(*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))
28.0ms
(/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))
24.0ms
(sqrt.f64 (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2))))

simplify215.0ms (1.6%)

Algorithm
egg-herbie
Rules
681×fma-def_binary64
508×associate-/l/_binary64
506×associate-/r*_binary64
375×fma-neg_binary64
320×*-commutative_binary64
Counts
244 → 445
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02226086
16095425
219014983
343094947
451114947

prune327.0ms (2.4%)

Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New5530553
Fresh044
Picked011
Done011
Total5536559
Error
0b
Counts
559 → 6
Alt Table
StatusErrorProgram
0.5b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.5b
(*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (sqrt.f64 1/2) (cos.f64 th)))
0.3b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) 2)))
0.4b
(*.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (sqrt.f64 (/.f64 1 2)))
0.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (sqrt.f64 (*.f64 (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)) (/.f64 (hypot.f64 a2 a1) (sqrt.f64 2)))))
0.5b
(*.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)) (cos.f64 th))
Compiler

Compiled 11304 to 5938 computations (47.5% saved)

regimes3.1s (22.5%)

Accuracy

Total 0.3b remaining (91.8%)

Threshold costs 0.3b (91.8%)

Compiler

Compiled 34295 to 22843 computations (33.4% saved)

simplify8.0ms (0.1%)

Algorithm
egg-herbie
Rules
*-commutative_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01324
11524
21524

end13.0ms (0.1%)

Remove

(sort a1 a2)

Compiler

Compiled 57 to 36 computations (36.8% saved)

sample6.4s (46.1%)

Algorithm
intervals
Results
1.7s1788×body1024valid
1.4s1552×body1024invalid
909.0ms4894×body128valid
522.0ms873×body512valid
491.0ms833×body512invalid
165.0ms441×body256valid
142.0ms379×body256invalid
123.0ms655×body128invalid
6.0msbody2048valid
1.0msbody2048invalid
Compiler

Compiled 157 to 105 computations (33.1% saved)

Profiling

Loading profile data...