Details

Time bar (total: 25.2s)

analyze2.3s (9.1%)

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
0%99.9%0.1%6
0%99.9%0.1%7
0%99.9%0.1%8
0%99.9%0.1%9
0%99.9%0.1%10
0%99.9%0.1%11
1.6%98.3%0.1%12
1.6%98.3%0.1%13
2.3%97.5%0.1%14
Compiler

Compiled 23 to 16 computations (30.4% saved)

sample15.3s (60.9%)

Symmetry

(sort a1 a2)

Results
11.3s4929×body8192exit
1.4s1818×body1024valid
1.0s5032×body128valid
582.0ms792×body1024invalid
458.0ms938×body512valid
198.0ms462×body256valid
179.0ms373×body512invalid
77.0ms198×body256invalid
40.0ms186×body128invalid
6.0msbody2048valid
Compiler

Compiled 45 to 31 computations (31.1% saved)

simplify9.0ms (0%)

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

prune5.0ms (0%)

Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New022
Fresh011
Picked000
Done000
Total033
Error
0.3b
Counts
3 → 2
Alt Table
StatusErrorProgram
0.4b
(+.f64 (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a1 a1)) (*.f64 (/.f64 (cos.f64 th) (sqrt.f64 2)) (*.f64 a2 a2)))
0.4b
(*.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%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.0b
(fma.f64 a1 a1 (*.f64 a2 a2))
0.0b
(cos.f64 th)
0.1b
(*.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))

series94.0ms (0.4%)

Counts
4 → 88
Calls

4 calls:

60.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2)))
23.0ms
(/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))
9.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))
2.0ms
(cos.f64 th)

rewrite20.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
41×add-sqr-sqrt_binary64
38×times-frac_binary64
33×*-un-lft-identity_binary64
33×add-cube-cbrt_binary64
22×associate-*r*_binary64
Counts
4 → 104
Calls

4 calls:

9.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))
1.0ms
(cos.f64 th)
0.0ms
(fma.f64 a1 a1 (*.f64 a2 a2))

simplify166.0ms (0.7%)

Algorithm
egg-herbie
Rules
486×associate-*l*_binary64
420×associate-*r*_binary64
336×associate-/l*_binary64
297×fma-neg_binary64
276×associate-*r/_binary64
Counts
192 → 191
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
01863723
14013380
213803332
344253332
447883332
549793332
649713332

prune191.0ms (0.8%)

Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New1847191
Fresh101
Picked101
Done000
Total1867193
Error
0b
Counts
193 → 7
Alt Table
StatusErrorProgram
1.2b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))) (cbrt.f64 (fma.f64 a2 a2 (*.f64 a1 a1))))) (/.f64 (cbrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.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.4b
(*.f64 (cos.f64 th) (/.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))) (cbrt.f64 (sqrt.f64 2))))
0.4b
(*.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.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
1.2b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
Compiler

Compiled 4435 to 2058 computations (53.6% saved)

localize17.0ms (0.1%)

Local error

Found 4 expressions with local error:

NewErrorProgram
0.2b
(*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))))
0.2b
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
0.3b
(*.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))))
6.4b
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

series685.0ms (2.7%)

Counts
4 → 120
Calls

4 calls:

404.0ms
(*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))))
221.0ms
(*.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))))
46.0ms
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
14.0ms
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

rewrite63.0ms (0.3%)

Algorithm
rewrite-expression-head
Rules
112×times-frac_binary64
99×sqrt-prod_binary64
91×add-sqr-sqrt_binary64
86×*-un-lft-identity_binary64
86×add-cube-cbrt_binary64
Counts
4 → 219
Calls

4 calls:

19.0ms
(*.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))))
10.0ms
(*.f64 (cos.f64 th) (/.f64 (hypot.f64 a2 a1) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))))
5.0ms
(/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (cbrt.f64 (sqrt.f64 2)))
1.0ms
(sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2)))

simplify225.0ms (0.9%)

Algorithm
egg-herbie
Rules
629×fma-def_binary64
486×associate-*l*_binary64
420×associate-*r*_binary64
263×associate-*r/_binary64
258×fma-neg_binary64
Counts
339 → 404
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
042412369
111719283
244939166
351089166

prune437.0ms (1.7%)

Pruning

7 alts after pruning (6 fresh and 1 done)

PrunedKeptTotal
New4022404
Fresh246
Picked011
Done000
Total4047411
Error
0b
Counts
411 → 7
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (cbrt.f64 (sqrt.f64 2)))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.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.4b
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
0.4b
(*.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.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
1.2b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
Compiler

Compiled 15698 to 9224 computations (41.2% saved)

localize12.0ms (0%)

Local error

Found 4 expressions with local error:

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

series1.1s (4.2%)

Counts
3 → 96
Calls

3 calls:

680.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))))
331.0ms
(/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
56.0ms
(/.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (cbrt.f64 (sqrt.f64 2)))

rewrite31.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
31×add-exp-log_binary64
21×add-cbrt-cube_binary64
18×add-sqr-sqrt_binary64
16×times-frac_binary64
14×*-un-lft-identity_binary64
Counts
3 → 93
Calls

3 calls:

11.0ms
(/.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (cbrt.f64 (sqrt.f64 2)))
8.0ms
(*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2)))))
5.0ms
(/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))

simplify146.0ms (0.6%)

Algorithm
egg-herbie
Rules
847×fma-def_binary64
392×cancel-sign-sub-inv_binary64
354×fma-neg_binary64
216×unswap-sqr_binary64
163×associate-*r*_binary64
Counts
189 → 183
Iterations

Useful iterations: 3 (0.0ms)

IterNodesCost
02375622
15714372
224164261
345144045
449874045

prune255.0ms (1%)

Pruning

7 alts after pruning (5 fresh and 2 done)

PrunedKeptTotal
New2000200
Fresh055
Picked011
Done011
Total2007207
Error
0b
Counts
207 → 7
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (cbrt.f64 (sqrt.f64 2)))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.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.4b
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
0.4b
(*.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.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
1.2b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
Compiler

Compiled 6199 to 3898 computations (37.1% saved)

localize12.0ms (0%)

Local error

Found 4 expressions with local error:

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

series505.0ms (2%)

Counts
4 → 132
Calls

4 calls:

412.0ms
(/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2)))
59.0ms
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
28.0ms
(*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th))
6.0ms
(fma.f64 a2 a2 (*.f64 a1 a1))

rewrite29.0ms (0.1%)

Algorithm
rewrite-expression-head
Rules
40×times-frac_binary64
32×add-exp-log_binary64
24×cbrt-prod_binary64
22×add-sqr-sqrt_binary64
20×*-un-lft-identity_binary64
Counts
4 → 117
Calls

4 calls:

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

simplify200.0ms (0.8%)

Algorithm
egg-herbie
Rules
780×fma-neg_binary64
731×cancel-sign-sub-inv_binary64
207×unswap-sqr_binary64
185×neg-mul-1_binary64
181×neg-sub0_binary64
Counts
249 → 235
Iterations

Useful iterations: 2 (0.0ms)

IterNodesCost
02706073
16675381
227985372
342045372
449925372
553065372

prune287.0ms (1.1%)

Pruning

7 alts after pruning (4 fresh and 3 done)

PrunedKeptTotal
New2350235
Fresh044
Picked011
Done022
Total2357242
Error
0b
Counts
242 → 7
Alt Table
StatusErrorProgram
0.4b
(/.f64 (*.f64 (cos.f64 th) (/.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))) (cbrt.f64 (sqrt.f64 2)))
0.6b
(*.f64 (/.f64 (cos.f64 th) (sqrt.f64 (sqrt.f64 2))) (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 (sqrt.f64 2))))
0.7b
(*.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.4b
(/.f64 (/.f64 (*.f64 (fma.f64 a2 a2 (*.f64 a1 a1)) (cos.f64 th)) (cbrt.f64 (sqrt.f64 2))) (*.f64 (cbrt.f64 (sqrt.f64 2)) (cbrt.f64 (sqrt.f64 2))))
0.4b
(*.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.4b
(*.f64 (*.f64 (cos.f64 th) (hypot.f64 a2 a1)) (/.f64 (sqrt.f64 (fma.f64 a1 a1 (*.f64 a2 a2))) (sqrt.f64 2)))
1.2b
(*.f64 (*.f64 (cos.f64 th) (*.f64 (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))) (cbrt.f64 (/.f64 (fma.f64 a1 a1 (*.f64 a2 a2)) (sqrt.f64 2))))
Compiler

Compiled 7214 to 4491 computations (37.7% saved)

regimes2.8s (11.1%)

Accuracy

Total 0.4b remaining (85.8%)

Threshold costs 0.4b (85.8%)

Counts
254 → 1
Compiler

Compiled 50800 to 36853 computations (27.5% saved)

simplify2.0ms (0%)

Algorithm
egg-herbie
Rules
/-rgt-identity_binary64
1-exp_binary64
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01318
11518
21418

end307.0ms (1.2%)

Compiler

Compiled 237 to 166 computations (30% saved)

Profiling

Loading profile data...