
Time bar (total: 2.6s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 0 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 1 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 2 |
| 50% | 50% | 50% | 0.1% | 0% | 0% | 0% | 3 |
| 50% | 50% | 50% | 0.1% | 0% | 0% | 0% | 4 |
| 62.5% | 62.4% | 37.5% | 0.1% | 0% | 0% | 0% | 5 |
| 66.7% | 62.4% | 31.2% | 0.1% | 0% | 6.2% | 0% | 6 |
| 75% | 65.6% | 21.9% | 0.1% | 0% | 12.5% | 0% | 7 |
| 80% | 68.7% | 17.2% | 0.1% | 0% | 14% | 0% | 8 |
| 85.7% | 70.2% | 11.7% | 0.1% | 0% | 18% | 0% | 9 |
| 88.9% | 71.8% | 9% | 0.1% | 0% | 19.1% | 0% | 10 |
| 92.3% | 72.6% | 6% | 0.1% | 0% | 21.3% | 0% | 11 |
| 94.1% | 73.4% | 4.6% | 0.1% | 0% | 22% | 0% | 12 |
Compiled 8 to 7 computations (12.5% saved)
| 834.0ms | 8 256× | 0 | valid |
| 17.0ms | 358× | 0 | invalid |
ival-mult!: 103.0ms (41.4% of total)ival-sqrt: 95.0ms (38.2% of total)ival-add!: 50.0ms (20.1% of total)adjust: 2.0ms (0.8% of total)Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 17 | 38 |
| 1 | 51 | 38 |
| 2 | 141 | 38 |
| 1× | node-limit |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 67.6% | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
(abs x)
Compiled 12 to 10 computations (16.7% saved)
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
x |
y |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 y)) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (sqrt.f64 y))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 (pow.f64 x #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y))))))) |
#s(approx (+ (* x x) y) y) |
#s(approx (+ (* x x) y) (+.f64 y (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (* x x) (pow.f64 x #s(literal 2 binary64))) |
#s(approx x x) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (+ (* x x) y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))) |
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 #s(literal -1/8 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 y (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))) |
#s(approx (+ (* x x) y) (*.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y)))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))) |
#s(approx (+ (* x x) y) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y)) #s(literal 1 binary64))))) |
6 calls:
| Time | Variable | Point |
|---|---|---|
| 15.0ms | y | -inf |
| 1.0ms | x | inf |
| 1.0ms | x | -inf |
| 1.0ms | x | 0 |
| 1.0ms | y | inf |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
x |
y |
| Outputs |
|---|
(fabs.f64 (sqrt.f64 (fma.f64 x x y))) |
(pow.f64 (fma.f64 x x y) #s(literal 1/2 binary64)) |
(sqrt.f64 (fma.f64 x x y)) |
(+.f64 (*.f64 x x) y) |
(+.f64 y (*.f64 x x)) |
(-.f64 (*.f64 x x) (neg.f64 y)) |
(fma.f64 x x y) |
(fma.f64 (neg.f64 x) (neg.f64 x) y) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) y) |
(*.f64 x x) |
(*.f64 (neg.f64 x) (neg.f64 x)) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(pow.f64 x #s(literal 2 binary64)) |
x |
y |
Compiled 849 to 179 computations (78.9% saved)
5 alts after pruning (5 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 36 | 5 | 41 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 37 | 5 | 42 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 67.6% | (sqrt.f64 (fma.f64 x x y)) |
| ▶ | 32.0% | (sqrt.f64 #s(approx (+ (* x x) y) y)) |
| ▶ | 31.9% | #s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
| ▶ | 70.7% | #s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))) |
| ▶ | 1.2% | #s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x)) |
Compiled 108 to 84 computations (22.2% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))) |
(*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))) |
x |
(+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))) |
#s(literal 1 binary64) |
(*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))) |
#s(literal 1/2 binary64) |
(/.f64 y (pow.f64 x #s(literal 2 binary64))) |
y |
(pow.f64 x #s(literal 2 binary64)) |
#s(literal 2 binary64) |
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
#s(approx (+ (* x x) y) y) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x)) |
(*.f64 #s(literal -1 binary64) x) |
#s(literal -1 binary64) |
(sqrt.f64 (fma.f64 x x y)) |
(fma.f64 x x y) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
(*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) |
(sqrt.f64 (/.f64 #s(literal 1 binary64) y)) |
(/.f64 #s(literal 1 binary64) y) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 y)) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (sqrt.f64 y))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 (pow.f64 x #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal 1/2 binary64) (/.f64 y x))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) x)) |
#s(approx x x) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (/ y (pow x 2)) (/.f64 y (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (pow x 2) (pow.f64 x #s(literal 2 binary64))) |
#s(approx (+ (* x x) y) y) |
#s(approx (+ (* x x) y) (+.f64 y (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (* -1 x) (*.f64 #s(literal -1 binary64) x)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))) |
#s(approx (+ (* x x) y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (+.f64 #s(literal 1 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 x (-.f64 (*.f64 #s(literal -1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))) #s(literal 1 binary64))))) |
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 #s(literal -1/8 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 y (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (+.f64 x (*.f64 #s(literal 1/2 binary64) (/.f64 y x)))) |
#s(approx (sqrt (/ 1 y)) (/.f64 (sqrt.f64 y) y)) |
#s(approx (/ 1 y) (/.f64 #s(literal 1 binary64) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x) (/.f64 x y)))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (+.f64 (/.f64 #s(literal 1 binary64) y) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (+ (* x x) y) (*.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y)))) |
#s(approx (sqrt (/ 1 y)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 x y)) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x)))))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64))) (/.f64 #s(literal 1 binary64) y)))) |
#s(approx (+ (* x x) y) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) y)) #s(literal 1 binary64))))) |
6 calls:
| Time | Variable | Point |
|---|---|---|
| 3.0ms | y | inf |
| 3.0ms | y | -inf |
| 2.0ms | x | 0 |
| 2.0ms | y | 0 |
| 1.0ms | x | inf |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))) |
(*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))) |
x |
(+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))) |
#s(literal 1 binary64) |
(*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))) |
#s(literal 1/2 binary64) |
(/.f64 y (pow.f64 x #s(literal 2 binary64))) |
y |
(pow.f64 x #s(literal 2 binary64)) |
#s(literal 2 binary64) |
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
#s(approx (+ (* x x) y) y) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x)) |
(*.f64 #s(literal -1 binary64) x) |
#s(literal -1 binary64) |
(sqrt.f64 (fma.f64 x x y)) |
(fma.f64 x x y) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
(*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) |
(sqrt.f64 (/.f64 #s(literal 1 binary64) y)) |
(/.f64 #s(literal 1 binary64) y) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 (fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64)) x)) |
(*.f64 (fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64)) x) |
(*.f64 x (fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64))) |
(+.f64 (*.f64 #s(literal 1 binary64) x) (*.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)) x)) |
(+.f64 (*.f64 x #s(literal 1 binary64)) (*.f64 x (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)))) |
(fma.f64 #s(literal 1 binary64) x (*.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)) x)) |
(fma.f64 x #s(literal 1 binary64) (*.f64 x (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)))) |
x |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x))) |
(+.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)) #s(literal 1 binary64)) |
(-.f64 #s(literal 1 binary64) (neg.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)))) |
(-.f64 #s(literal 1 binary64) (*.f64 #s(literal -1/2 binary64) (/.f64 y (*.f64 x x)))) |
(fma.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 #s(literal 1/2 binary64) (/.f64 y (*.f64 x x)) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
(cosh.f64 #s(literal 0 binary64)) |
(exp.f64 #s(literal 0 binary64)) |
(*.f64 #s(literal 1/2 binary64) (/.f64 y (*.f64 x x))) |
(*.f64 (/.f64 y (*.f64 x x)) #s(literal 1/2 binary64)) |
(/.f64 (*.f64 #s(literal 1/2 binary64) y) (*.f64 x x)) |
#s(literal 1/2 binary64) |
(*.f64 y (/.f64 #s(literal 1 binary64) (*.f64 x x))) |
(/.f64 y (*.f64 x x)) |
(/.f64 (neg.f64 y) (neg.f64 (*.f64 x x))) |
y |
(*.f64 x x) |
(*.f64 (neg.f64 x) (neg.f64 x)) |
(*.f64 (fabs.f64 x) (fabs.f64 x)) |
(pow.f64 x #s(literal 2 binary64)) |
#s(literal 2 binary64) |
(+.f64 #s(literal 1 binary64) #s(literal 1 binary64)) |
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
#s(approx (+ (* x x) y) y) |
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
(*.f64 #s(literal -1 binary64) x) |
(*.f64 x #s(literal -1 binary64)) |
(neg.f64 x) |
#s(literal -1 binary64) |
(neg.f64 #s(literal 1 binary64)) |
(fabs.f64 (sqrt.f64 (fma.f64 x x y))) |
(pow.f64 (fma.f64 x x y) #s(literal 1/2 binary64)) |
(sqrt.f64 (fma.f64 x x y)) |
(+.f64 (*.f64 x x) y) |
(+.f64 y (*.f64 x x)) |
(-.f64 (*.f64 x x) (neg.f64 y)) |
(fma.f64 x x y) |
(fma.f64 (neg.f64 x) (neg.f64 x) y) |
(fma.f64 (fabs.f64 x) (fabs.f64 x) y) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
(*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) |
(*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) y) |
(fabs.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) |
(pow.f64 (/.f64 #s(literal 1 binary64) y) #s(literal 1/2 binary64)) |
(sqrt.f64 (/.f64 #s(literal 1 binary64) y)) |
(*.f64 #s(literal 1 binary64) (/.f64 #s(literal 1 binary64) y)) |
(/.f64 #s(literal 1 binary64) y) |
(/.f64 #s(literal -1 binary64) (neg.f64 y)) |
(pow.f64 y #s(literal -1 binary64)) |
Compiled 1 862 to 383 computations (79.4% saved)
4 alts after pruning (2 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 87 | 2 | 89 |
| Fresh | 0 | 0 | 0 |
| Picked | 3 | 2 | 5 |
| Done | 0 | 0 | 0 |
| Total | 90 | 4 | 94 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 67.6% | (sqrt.f64 (fma.f64 x x y)) |
| ✓ | 32.0% | (sqrt.f64 #s(approx (+ (* x x) y) y)) |
| ▶ | 70.2% | #s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
| ▶ | 1.2% | #s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
Compiled 42 to 33 computations (21.4% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
(neg.f64 x) |
x |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
(*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 y)) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (sqrt.f64 y))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 y) (*.f64 (pow.f64 x #s(literal 2 binary64)) (fma.f64 (pow.f64 x #s(literal 2 binary64)) (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 (sqrt.f64 y) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 y) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 y))))))) |
#s(approx (neg x) (*.f64 #s(literal -1 binary64) x)) |
#s(approx x x) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal 1/2 binary64) (/.f64 y x))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) x)) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (/.f64 (fma.f64 #s(literal 1/2 binary64) y (pow.f64 x #s(literal 2 binary64))) (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 x (+.f64 #s(literal 1 binary64) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 y #s(literal 2 binary64)) (pow.f64 x #s(literal 4 binary64))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 y #s(literal 3 binary64)) (pow.f64 x #s(literal 6 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 x (-.f64 (*.f64 #s(literal -1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64)))) #s(literal 1 binary64))))) |
#s(approx (sqrt (+ (* x x) y)) (sqrt.f64 (pow.f64 x #s(literal 2 binary64)))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 y (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 #s(literal -1/8 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) (*.f64 y (fma.f64 y (-.f64 (*.f64 #s(literal 1/16 binary64) (/.f64 y (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 5 binary64)))) (*.f64 #s(literal 1/8 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 (sqrt.f64 (pow.f64 x #s(literal 2 binary64))) #s(literal 3 binary64))))) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (sqrt.f64 (pow.f64 x #s(literal 2 binary64))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (+.f64 x (*.f64 #s(literal 1/2 binary64) (/.f64 y x)))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x) (/.f64 x y)))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (+.f64 (/.f64 #s(literal 1 binary64) y) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))))))))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) (*.f64 y (+.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (fma.f64 #s(literal -1/8 binary64) (/.f64 (pow.f64 x #s(literal 4 binary64)) (*.f64 (pow.f64 y #s(literal 4 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 3 binary64)))) (fma.f64 #s(literal 1/16 binary64) (/.f64 (pow.f64 x #s(literal 6 binary64)) (*.f64 (pow.f64 y #s(literal 6 binary64)) (pow.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 5 binary64)))) (*.f64 #s(literal 1/2 binary64) (/.f64 (pow.f64 x #s(literal 2 binary64)) (*.f64 (pow.f64 y #s(literal 2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))))))))) |
#s(approx (* x (+ 1 (* 1/2 (/ y (pow x 2))))) (*.f64 #s(literal -1 binary64) (*.f64 y (-.f64 (*.f64 #s(literal -1 binary64) (/.f64 x y)) (*.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) x)))))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) (*.f64 y (fma.f64 #s(literal 1/2 binary64) (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 2 binary64))) (/.f64 #s(literal 1 binary64) y)))) |
6 calls:
| Time | Variable | Point |
|---|---|---|
| 2.0ms | x | -inf |
| 1.0ms | x | inf |
| 1.0ms | x | 0 |
| 1.0ms | y | inf |
| 1.0ms | y | -inf |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
(neg.f64 x) |
x |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
(*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64))) |
#s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
(neg.f64 x) |
x |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (/ (* 1/2 y) (* x x))) #s(literal 1 binary64)))) |
(*.f64 x #s(approx (+ 1 (/ (* 1/2 y) (* x x))) #s(literal 1 binary64))) |
#s(approx (+ 1 (/ (* 1/2 y) (* x x))) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
(cosh.f64 #s(literal 0 binary64)) |
(exp.f64 #s(literal 0 binary64)) |
Compiled 1 140 to 212 computations (81.4% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 41 | 0 | 41 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 2 | 2 |
| Total | 41 | 4 | 45 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 67.6% | (sqrt.f64 (fma.f64 x x y)) |
| ✓ | 32.0% | (sqrt.f64 #s(approx (+ (* x x) y) y)) |
| ✓ | 70.2% | #s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
| ✓ | 1.2% | #s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
Compiled 42 to 33 computations (21.4% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x)) |
| Outputs |
|---|
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
| Outputs |
|---|
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (neg.f64 x)) |
(sqrt.f64 #s(approx (+ (* x x) y) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 #s(literal -1 binary64) x)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
(sqrt.f64 (fma.f64 x x y)) |
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 y (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x (+.f64 #s(literal 1 binary64) (*.f64 #s(literal 1/2 binary64) (/.f64 y (pow.f64 x #s(literal 2 binary64))))))) |
| Outputs |
|---|
(sqrt.f64 (fma.f64 x x y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x #s(approx (+ 1 (* 1/2 (/ y (pow x 2)))) #s(literal 1 binary64)))) |
19 calls:
| 45.0ms | x |
| 6.0ms | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 5.0ms | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 5.0ms | (+.f64 (*.f64 x x) y) |
| 5.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 1.2% | 1 | y |
| 1.2% | 1 | (*.f64 x x) |
| 1.2% | 1 | (+.f64 (*.f64 x x) y) |
| 1.2% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1.2% | 1 | x |
| 32.0% | 1 | (+.f64 (*.f64 x x) y) |
| 32.0% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 32.0% | 1 | y |
| 32.0% | 1 | (*.f64 x x) |
| 32.0% | 1 | x |
| 90.6% | 2 | (*.f64 x x) |
| 75.9% | 2 | (+.f64 (*.f64 x x) y) |
| 75.9% | 2 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 90.6% | 2 | x |
| 100.0% | 2 | (*.f64 x x) |
| 100.0% | 2 | (+.f64 (*.f64 x x) y) |
| 100.0% | 2 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 100.0% | 2 | x |
| 85.5% | 2 | y |
Compiled 152 to 102 computations (32.9% saved)
| 1× | binary-search |
| 1× | predicate-same |
| Time | Left | Right |
|---|---|---|
| 3.0ms | 2.865747020582078e+131 | 1.7428571019573107e+143 |
| 1.0ms | 32× | 0 | valid |
Compiled 59 to 54 computations (8.5% saved)
adjust: 0.0ms (0% of total)ival-add!: 0.0ms (0% of total)ival-sqrt: 0.0ms (0% of total)ival-mult!: 0.0ms (0% of total)| 1× | binary-search |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 8.0ms | 2.0166228006230857e-35 | 5.546210022483705e-35 |
| 3.0ms | 80× | 0 | valid |
| 1.0ms | 22× | 0 | invalid |
Compiled 149 to 130 computations (12.8% saved)
ival-sqrt: 1.0ms (61.6% of total)ival-mult!: 1.0ms (61.6% of total)adjust: 0.0ms (0% of total)ival-add!: 0.0ms (0% of total)| 1× | done |
Compiled 78 to 28 computations (64.1% saved)
(abs x)
Compiled 240 to 143 computations (40.4% saved)
Loading profile data...