
Time bar (total: 1.5s)
| 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 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 3 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 4 |
| 30.8% | 25% | 56.2% | 0.1% | 0% | 18.7% | 0% | 5 |
| 32% | 25% | 53.1% | 0.1% | 0% | 21.9% | 0% | 6 |
| 55.8% | 37.5% | 29.7% | 0.1% | 0% | 32.8% | 0% | 7 |
| 57.8% | 37.5% | 27.3% | 0.1% | 0% | 35.1% | 0% | 8 |
| 74.2% | 43.7% | 15.2% | 0.1% | 0% | 41% | 0% | 9 |
| 75.9% | 43.7% | 13.9% | 0.1% | 0% | 42.3% | 0% | 10 |
| 85.9% | 46.8% | 7.7% | 0.1% | 0% | 45.4% | 0% | 11 |
| 87% | 46.8% | 7% | 0.1% | 0% | 46.1% | 0% | 12 |
Compiled 10 to 8 computations (20% saved)
| 394.0ms | 8 256× | 0 | valid |
| 29.0ms | 628× | 0 | invalid |
ival-mult!: 139.0ms (60.3% of total)ival-sqrt: 69.0ms (29.9% of total)ival-sub!: 21.0ms (9.1% of total)adjust: 1.0ms (0.4% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 115 | 0 | - | 1 | (5.2631402035864475e-158 -1.8622009378435603e-223) | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 17 | 0 | - | 0 | - | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 0 | 0 | - | 0 | - | (*.f64 a a) |
| 0 | 0 | - | 0 | - | a |
| 0 | 0 | - | 0 | - | b |
| 0 | 0 | - | 0 | - | (*.f64 b b) |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) | oflow-rescue | 102 | 0 |
| ↳ | (*.f64 b b) | overflow | 17 | |
| ↳ | (-.f64 (*.f64 a a) (*.f64 b b)) | overflow | 102 | |
| ↳ | (*.f64 a a) | overflow | 102 | |
-.f64 | (-.f64 (*.f64 a a) (*.f64 b b)) | nan-rescue | 17 | 0 |
| ↳ | (*.f64 a a) | overflow | 102 | |
| ↳ | (*.f64 b b) | overflow | 17 | |
sqrt.f64 | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) | uflow-rescue | 12 | 0 |
| ↳ | (*.f64 b b) | underflow | 114 | |
| ↳ | (-.f64 (*.f64 a a) (*.f64 b b)) | underflow | 12 | |
| ↳ | (*.f64 a a) | underflow | 12 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 114 | 1 |
| - | 0 | 141 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 114 | 0 | 1 |
| - | 0 | 0 | 141 |
| number | freq |
|---|---|
| 0 | 142 |
| 1 | 97 |
| 2 | 17 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 22.0ms | 512× | 0 | valid |
Compiled 58 to 22 computations (62.1% saved)
ival-mult!: 5.0ms (50% of total)ival-sqrt: 4.0ms (40% of total)ival-sub!: 1.0ms (10% of total)adjust: 0.0ms (0% of total)Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 16 | 32 |
| 1 | 53 | 32 |
| 2 | 212 | 32 |
| 3 | 342 | 32 |
| 4 | 871 | 32 |
| 5 | 1835 | 32 |
| 6 | 3007 | 32 |
| 7 | 3349 | 32 |
| 8 | 3427 | 32 |
| 9 | 3427 | 32 |
| 10 | 3623 | 32 |
| 0 | 6 | 8 |
| 0 | 10 | 8 |
| 1 | 23 | 8 |
| 2 | 83 | 8 |
| 3 | 225 | 8 |
| 4 | 405 | 8 |
| 5 | 836 | 8 |
| 6 | 1387 | 8 |
| 7 | 2071 | 8 |
| 8 | 2896 | 8 |
| 9 | 3206 | 8 |
| 10 | 3268 | 8 |
| 11 | 3268 | 8 |
| 12 | 3346 | 8 |
| 0 | 3346 | 8 |
| 1× | iter-limit |
| 1× | saturated |
| 1× | iter-limit |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| Outputs |
|---|
(sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
(sqrt.f64 (*.f64 (-.f64 a b) (+.f64 b a))) |
(abs a)
(abs b)
Compiled 8 to 6 computations (25% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 58.1% | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
Compiled 8 to 6 computations (25% saved)
| Inputs |
|---|
(sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 a a) |
a |
(*.f64 b b) |
b |
| Outputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* 1/2 (/ (pow a 2) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* -1/8 (/ (pow a 2) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* (pow a 2) (- (* 1/16 (/ (pow a 2) (* (pow b 5) (pow (sqrt -1) 5)))) (* 1/8 (/ 1 (* (pow b 3) (pow (sqrt -1) 3)))))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2)))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2)))) |
#s(approx (* a a) #s(hole binary64 (pow a 2))) |
#s(approx a #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6))))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 a))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* -1/8 (/ (pow b 2) (pow a 3))) (* 1/2 (/ 1 a))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* (pow b 2) (- (* -1/16 (/ (pow b 2) (pow a 5))) (* 1/8 (/ 1 (pow a 3))))) (* 1/2 (/ 1 a))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2)))) |
#s(approx (* b b) #s(hole binary64 (pow b 2))) |
#s(approx b #s(hole binary64 b)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | a | @ | 0 | ((sqrt (- (* a a) (* b b))) (- (* a a) (* b b)) (* a a) a (* b b) b) |
| 1.0ms | b | @ | inf | ((sqrt (- (* a a) (* b b))) (- (* a a) (* b b)) (* a a) a (* b b) b) |
| 1.0ms | a | @ | inf | ((sqrt (- (* a a) (* b b))) (- (* a a) (* b b)) (* a a) a (* b b) b) |
| 1.0ms | a | @ | -inf | ((sqrt (- (* a a) (* b b))) (- (* a a) (* b b)) (* a a) a (* b b) b) |
| 1.0ms | b | @ | 0 | ((sqrt (- (* a a) (* b b))) (- (* a a) (* b b)) (* a a) a (* b b) b) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 159 | 856 |
| 0 | 164 | 821 |
| 0 | 818 | 795 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | node-limit |
| 1× | iter-limit |
| Inputs |
|---|
(sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(*.f64 a a) |
a |
(*.f64 b b) |
b |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* 1/2 (/ (pow a 2) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* -1/8 (/ (pow a 2) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* (pow a 2) (- (* 1/16 (/ (pow a 2) (* (pow b 5) (pow (sqrt -1) 5)))) (* 1/8 (/ 1 (* (pow b 3) (pow (sqrt -1) 3)))))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* -1 (pow b 2)))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (- (pow a 2) (pow b 2)))) |
#s(approx (* a a) #s(hole binary64 (pow a 2))) |
#s(approx a #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6))))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (pow a 2))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 a))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* -1/8 (/ (pow b 2) (pow a 3))) (* 1/2 (/ 1 a))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* (pow b 2) (- (* -1/16 (/ (pow b 2) (pow a 5))) (* 1/8 (/ 1 (pow a 3))))) (* 1/2 (/ 1 a))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (+ (* -1 (pow b 2)) (pow a 2)))) |
#s(approx (* b b) #s(hole binary64 (pow b 2))) |
#s(approx b #s(hole binary64 b)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (- (* a a) (* b b)) #s(hole binary64 (* (pow b 2) (- (/ (pow a 2) (pow b 2)) 1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))))) |
| Outputs |
|---|
(sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
(*.f64 (+.f64 a b) (-.f64 a b)) |
(/.f64 (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 b b) (*.f64 b b))) (fma.f64 a a (*.f64 b b))) |
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 b) b)) |
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 b) b)) |
(fma.f64 a a (*.f64 (neg.f64 b) b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(+.f64 (*.f64 a a) (*.f64 (neg.f64 b) b)) |
(*.f64 (neg.f64 a) (neg.f64 a)) |
(*.f64 (fabs.f64 a) (fabs.f64 a)) |
(*.f64 a a) |
a |
(*.f64 (neg.f64 b) (neg.f64 b)) |
(*.f64 (fabs.f64 b) (fabs.f64 b)) |
(*.f64 b b) |
b |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (/.f64 (/.f64 (*.f64 a a) b) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (fma.f64 (/.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 b b) b)) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64)))) #s(literal -1/8 binary64) (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) (*.f64 a a) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (- (* a a) (* b b)) (neg.f64 (*.f64 b b))) |
#s(approx (- (* a a) (* b b)) (*.f64 (+.f64 a b) (-.f64 a b))) |
#s(approx (* a a) (*.f64 a a)) |
#s(approx a a) |
#s(approx (sqrt (- (* a a) (* b b))) a) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 b b)) (*.f64 a a))) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 b b) b) (*.f64 (*.f64 b b) b)) (*.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 a a) a))) #s(literal -1/16 binary64) (*.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64)))) a)) |
#s(approx (- (* a a) (* b b)) (*.f64 a a)) |
#s(approx (- (* a a) (* b b)) (*.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1 binary64) #s(literal 1 binary64)) (*.f64 a a))) |
#s(approx (sqrt (- (* a a) (* b b))) (neg.f64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)))) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (neg.f64 a) (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal -1/2 binary64) (*.f64 b b)) (*.f64 a a))) #s(literal 1 binary64)))) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (neg.f64 a) (+.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 b b) b) (*.f64 (*.f64 b b) b)) (*.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 a a) a))) #s(literal -1/16 binary64) (*.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64)))))) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (-.f64 (/.f64 (*.f64 #s(literal -1/8 binary64) (*.f64 b b)) (*.f64 (*.f64 a a) a)) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b) a)) |
#s(approx (- (* a a) (* b b)) (fma.f64 a a (neg.f64 (*.f64 b b)))) |
#s(approx (* b b) (*.f64 b b)) |
#s(approx b b) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (sqrt (- (* a a) (* b b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64))))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 a a)) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (- (* a a) (* b b)) (*.f64 (-.f64 (/.f64 (*.f64 a a) (*.f64 b b)) #s(literal 1 binary64)) (*.f64 b b))) |
#s(approx (sqrt (- (* a a) (* b b))) (neg.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (sqrt (- (* a a) (* b b))) (neg.f64 (*.f64 (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))) b))) |
#s(approx (sqrt (- (* a a) (* b b))) (neg.f64 (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -1 binary64))) (sqrt.f64 #s(literal -1 binary64))))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 a a)) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))) b))) |
Compiled 905 to 162 computations (82.1% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 45 | 3 | 48 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 46 | 3 | 49 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 58.6% | (sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
| ▶ | 92.5% | #s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
| ▶ | 98.5% | #s(approx (sqrt (- (* a a) (* b b))) a) |
Compiled 35 to 24 computations (31.4% saved)
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
a |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
(fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a) |
(/.f64 (*.f64 b b) a) |
(*.f64 b b) |
b |
#s(literal -1/2 binary64) |
(sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
(*.f64 (+.f64 a b) (-.f64 a b)) |
(+.f64 a b) |
(-.f64 a b) |
| Outputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* 1/2 (/ (pow a 2) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* -1/8 (/ (pow a 2) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* (pow a 2) (- (* 1/16 (/ (pow a 2) (* (pow b 5) (pow (sqrt -1) 5)))) (* 1/8 (/ 1 (* (pow b 3) (pow (sqrt -1) 3)))))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx a #s(hole binary64 a)) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* -1/2 (/ (pow b 2) a)))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (/ (+ (* -1/2 (pow b 2)) (pow a 2)) a))) |
#s(approx (/ (* b b) a) #s(hole binary64 (/ (pow b 2) a))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ (* 1/2 (/ (* a (+ b (* -1 b))) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (* a (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2)))))) (* b (sqrt -1)))) (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))))) (* b (sqrt -1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))) (* a (+ (* -1/4 (/ (* a (* (+ b (* -1 b)) (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))))) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))) (* b (sqrt -1)))))))) (* b (sqrt -1))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* -1 (pow b 2)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ b (* -1 b)))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b))))))) |
#s(approx (+ a b) #s(hole binary64 b)) |
#s(approx (+ a b) #s(hole binary64 (+ a b))) |
#s(approx (- a b) #s(hole binary64 (* -1 b))) |
#s(approx (- a b) #s(hole binary64 (- a b))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6))))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 a)) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 a)) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* a (+ 1 (* 1/2 (/ (+ b (* -1 b)) a)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* a (+ 1 (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2)))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* a (+ 1 (+ (* -1/4 (/ (* (+ b (* -1 b)) (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2)))) (pow a 3))) (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2))))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (pow a 2))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a)))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a))))))) |
#s(approx (+ a b) #s(hole binary64 a)) |
#s(approx (+ a b) #s(hole binary64 (* a (+ 1 (/ b a))))) |
#s(approx (- a b) #s(hole binary64 a)) |
#s(approx (- a b) #s(hole binary64 (* a (+ 1 (* -1 (/ b a)))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 a))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6)))))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* -1 (* a (- (* 1/2 (/ (pow b 2) (pow a 2))) 1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (pow (sqrt -1) 2))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1/2 (/ (+ b (* -1 b)) a)) (pow (sqrt -1) 2)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1/2 (/ (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ b (* -1 b)) (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2))))) (* a (pow (sqrt -1) 2)))) (* 1/2 (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a)))))) |
#s(approx (+ a b) #s(hole binary64 (* -1 (* a (- (* -1 (/ b a)) 1))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* a (- (/ b a) 1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* -1/8 (/ (pow b 2) (pow a 3))) (* 1/2 (/ 1 a))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* (pow b 2) (- (* -1/16 (/ (pow b 2) (pow a 5))) (* 1/8 (/ 1 (pow a 3))))) (* 1/2 (/ 1 a))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (* b b) #s(hole binary64 (pow b 2))) |
#s(approx b #s(hole binary64 b)) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ a (* 1/2 (/ (* b (+ a (* -1 a))) a))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ a (* b (+ (* -1/2 (/ (* b (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2))))) a)) (* 1/2 (/ (+ a (* -1 a)) a))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ a (* b (+ (* 1/2 (/ (+ a (* -1 a)) a)) (* b (+ (* -1/2 (/ (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) a)) (* 1/4 (/ (* b (* (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) (+ a (* -1 a)))) (pow a 3)))))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* b (+ a (* -1 a))) (pow a 2)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2)))) |
#s(approx (- a b) #s(hole binary64 (+ a (* -1 b)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* (pow b 2) (- (/ a (pow b 2)) (* 1/2 (/ 1 a)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* (pow b 3) (pow (sqrt -1) 3)))) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1)))) |
#s(approx (+ a b) #s(hole binary64 (* b (+ 1 (/ a b))))) |
#s(approx (- a b) #s(hole binary64 (* b (- (/ a b) 1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1/2 (/ (+ a (* -1 a)) (* b (sqrt -1))))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* b (sqrt -1)))) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* b (pow (sqrt -1) 3)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (sqrt -1)))) b)) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1)))) |
#s(approx (+ a b) #s(hole binary64 (* -1 (* b (- (* -1 (/ a b)) 1))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* b (+ 1 (* -1 (/ a b))))))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 6.0ms | b | @ | inf | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (+ (* (/ (* b b) a) -1/2) a) (/ (* b b) a) (* b b) b -1/2 (sqrt (* (+ a b) (- a b))) (* (+ a b) (- a b)) (+ a b) (- a b)) |
| 2.0ms | b | @ | 0 | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (+ (* (/ (* b b) a) -1/2) a) (/ (* b b) a) (* b b) b -1/2 (sqrt (* (+ a b) (- a b))) (* (+ a b) (- a b)) (+ a b) (- a b)) |
| 2.0ms | a | @ | 0 | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (+ (* (/ (* b b) a) -1/2) a) (/ (* b b) a) (* b b) b -1/2 (sqrt (* (+ a b) (- a b))) (* (+ a b) (- a b)) (+ a b) (- a b)) |
| 2.0ms | a | @ | -inf | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (+ (* (/ (* b b) a) -1/2) a) (/ (* b b) a) (* b b) b -1/2 (sqrt (* (+ a b) (- a b))) (* (+ a b) (- a b)) (+ a b) (- a b)) |
| 2.0ms | b | @ | -inf | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (+ (* (/ (* b b) a) -1/2) a) (/ (* b b) a) (* b b) b -1/2 (sqrt (* (+ a b) (- a b))) (* (+ a b) (- a b)) (+ a b) (- a b)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 446 | 2422 |
| 0 | 454 | 2166 |
| 0 | 2700 | 2090 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | node-limit |
| 1× | iter-limit |
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
a |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
(fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a) |
(/.f64 (*.f64 b b) a) |
(*.f64 b b) |
b |
#s(literal -1/2 binary64) |
(sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
(*.f64 (+.f64 a b) (-.f64 a b)) |
(+.f64 a b) |
(-.f64 a b) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* 1/2 (/ (pow a 2) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* -1/8 (/ (pow a 2) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* (pow a 2) (- (* 1/16 (/ (pow a 2) (* (pow b 5) (pow (sqrt -1) 5)))) (* 1/8 (/ 1 (* (pow b 3) (pow (sqrt -1) 3)))))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx a #s(hole binary64 a)) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* -1/2 (/ (pow b 2) a)))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (/ (+ (* -1/2 (pow b 2)) (pow a 2)) a))) |
#s(approx (/ (* b b) a) #s(hole binary64 (/ (pow b 2) a))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ (* 1/2 (/ (* a (+ b (* -1 b))) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (* a (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2)))))) (* b (sqrt -1)))) (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))))) (* b (sqrt -1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))) (* a (+ (* -1/4 (/ (* a (* (+ b (* -1 b)) (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))))) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))) (* b (sqrt -1)))))))) (* b (sqrt -1))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* -1 (pow b 2)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ b (* -1 b)))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* -1 (pow b 2)) (* a (+ a (+ b (* -1 b))))))) |
#s(approx (+ a b) #s(hole binary64 b)) |
#s(approx (+ a b) #s(hole binary64 (+ a b))) |
#s(approx (- a b) #s(hole binary64 (* -1 b))) |
#s(approx (- a b) #s(hole binary64 (- a b))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6))))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 a)) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 a)) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* a (+ 1 (* 1/2 (/ (+ b (* -1 b)) a)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* a (+ 1 (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2)))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* a (+ 1 (+ (* -1/4 (/ (* (+ b (* -1 b)) (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2)))) (pow a 3))) (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2))))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (pow a 2))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (/ b a)))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow a 2) (+ 1 (+ (* -1 (/ b a)) (+ (* -1 (/ (pow b 2) (pow a 2))) (/ b a))))))) |
#s(approx (+ a b) #s(hole binary64 a)) |
#s(approx (+ a b) #s(hole binary64 (* a (+ 1 (/ b a))))) |
#s(approx (- a b) #s(hole binary64 a)) |
#s(approx (- a b) #s(hole binary64 (* a (+ 1 (* -1 (/ b a)))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 a))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6)))))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* -1 (* a (- (* 1/2 (/ (pow b 2) (pow a 2))) 1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (pow (sqrt -1) 2))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1/2 (/ (+ b (* -1 b)) a)) (pow (sqrt -1) 2)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1/2 (/ (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ b (* -1 b)) (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2))))) (* a (pow (sqrt -1) 2)))) (* 1/2 (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow a 2) (+ 1 (* -1 (/ (+ (* -1 (+ b (* -1 b))) (/ (pow b 2) a)) a)))))) |
#s(approx (+ a b) #s(hole binary64 (* -1 (* a (- (* -1 (/ b a)) 1))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* a (- (/ b a) 1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* -1/8 (/ (pow b 2) (pow a 3))) (* 1/2 (/ 1 a))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* (pow b 2) (- (* -1/16 (/ (pow b 2) (pow a 5))) (* 1/8 (/ 1 (pow a 3))))) (* 1/2 (/ 1 a))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (* b b) #s(hole binary64 (pow b 2))) |
#s(approx b #s(hole binary64 b)) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ a (* 1/2 (/ (* b (+ a (* -1 a))) a))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ a (* b (+ (* -1/2 (/ (* b (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2))))) a)) (* 1/2 (/ (+ a (* -1 a)) a))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (+ a (* b (+ (* 1/2 (/ (+ a (* -1 a)) a)) (* b (+ (* -1/2 (/ (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) a)) (* 1/4 (/ (* b (* (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) (+ a (* -1 a)))) (pow a 3)))))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* b (+ a (* -1 a))) (pow a 2)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (+ (* b (+ a (+ (* -1 a) (* -1 b)))) (pow a 2)))) |
#s(approx (- a b) #s(hole binary64 (+ a (* -1 b)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) #s(hole binary64 (* (pow b 2) (- (/ a (pow b 2)) (* 1/2 (/ 1 a)))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* (pow b 3) (pow (sqrt -1) 3)))) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (/ a b)) 1)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (+ (* -1 (/ a b)) (+ (/ a b) (/ (pow a 2) (pow b 2)))) 1)))) |
#s(approx (+ a b) #s(hole binary64 (* b (+ 1 (/ a b))))) |
#s(approx (- a b) #s(hole binary64 (* b (- (/ a b) 1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1/2 (/ (+ a (* -1 a)) (* b (sqrt -1))))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* b (sqrt -1)))) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (sqrt (* (+ a b) (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* b (pow (sqrt -1) 3)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (sqrt -1)))) b)) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (* -1 a)) b)) 1)))) |
#s(approx (* (+ a b) (- a b)) #s(hole binary64 (* (pow b 2) (- (* -1 (/ (+ a (+ (* -1 a) (* -1 (/ (pow a 2) b)))) b)) 1)))) |
#s(approx (+ a b) #s(hole binary64 (* -1 (* b (- (* -1 (/ a b)) 1))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* b (+ 1 (* -1 (/ a b))))))) |
| Outputs |
|---|
#s(approx (sqrt (* (+ a b) (- a b))) a) |
a |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
(/.f64 (-.f64 (*.f64 (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64)) (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64))) (*.f64 a a)) (-.f64 (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64)) a)) |
(/.f64 (-.f64 (*.f64 a a) (*.f64 (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64)) (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64)))) (-.f64 a (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64)))) |
(fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a) |
(fma.f64 #s(literal -1/2 binary64) (/.f64 (*.f64 b b) a) a) |
(-.f64 a (*.f64 #s(literal 1/2 binary64) (/.f64 (*.f64 b b) a))) |
(+.f64 (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64)) a) |
(+.f64 a (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64))) |
(*.f64 b (/.f64 b a)) |
(/.f64 (neg.f64 (*.f64 b b)) (neg.f64 a)) |
(/.f64 (*.f64 b b) a) |
(*.f64 (fabs.f64 b) (fabs.f64 b)) |
(*.f64 (neg.f64 b) (neg.f64 b)) |
(*.f64 b b) |
b |
#s(literal -1/2 binary64) |
(*.f64 (sqrt.f64 (+.f64 b a)) (sqrt.f64 (-.f64 a b))) |
(sqrt.f64 (*.f64 (-.f64 a b) (+.f64 b a))) |
(*.f64 (-.f64 a b) (+.f64 b a)) |
(*.f64 (+.f64 b a) (-.f64 a b)) |
(/.f64 (-.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 b b) (*.f64 b b))) (fma.f64 a a (*.f64 b b))) |
(fma.f64 (fabs.f64 a) (fabs.f64 a) (*.f64 (neg.f64 b) b)) |
(fma.f64 (neg.f64 a) (neg.f64 a) (*.f64 (neg.f64 b) b)) |
(fma.f64 a a (*.f64 (neg.f64 b) b)) |
(-.f64 (*.f64 a a) (*.f64 b b)) |
(+.f64 (*.f64 a a) (*.f64 (neg.f64 b) b)) |
(/.f64 (fma.f64 (*.f64 a a) a (*.f64 (*.f64 b b) b)) (fma.f64 a a (-.f64 (*.f64 b b) (*.f64 a b)))) |
(/.f64 (*.f64 (-.f64 a b) (+.f64 b a)) (-.f64 a b)) |
(+.f64 b a) |
(+.f64 a b) |
(/.f64 (-.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 b b) b)) (fma.f64 a a (fma.f64 b b (*.f64 a b)))) |
(/.f64 (*.f64 (-.f64 a b) (+.f64 b a)) (+.f64 b a)) |
(-.f64 a b) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (/.f64 (/.f64 (*.f64 a a) b) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)) (*.f64 (*.f64 b b) b))) #s(literal -1/8 binary64) (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) (*.f64 a a) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx a a) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) (*.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) (/.f64 (fma.f64 (*.f64 b b) #s(literal -1/2 binary64) (*.f64 a a)) a)) |
#s(approx (/ (* b b) a) (/.f64 (*.f64 b b) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (/.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) a) b) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (*.f64 #s(literal 1/2 binary64) (fma.f64 (/.f64 a b) (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) (neg.f64 (*.f64 b b))) #s(literal 1/4 binary64))) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (/.f64 (*.f64 #s(literal 0 binary64) b) b) (sqrt.f64 #s(literal -1 binary64))))) a (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (fma.f64 (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) a) (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) (neg.f64 (*.f64 b b))) #s(literal 1/4 binary64)))) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)) (*.f64 (*.f64 b b) b))) #s(literal -1/4 binary64) (*.f64 (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) (neg.f64 (*.f64 b b))) #s(literal 1/4 binary64))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) #s(literal 1/2 binary64))) a (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) #s(literal 1/2 binary64)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) a (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (* (+ a b) (- a b)) (neg.f64 (*.f64 b b))) |
#s(approx (* (+ a b) (- a b)) (fma.f64 (*.f64 #s(literal 0 binary64) b) a (neg.f64 (*.f64 b b)))) |
#s(approx (* (+ a b) (- a b)) (fma.f64 (fma.f64 #s(literal 0 binary64) b a) a (neg.f64 (*.f64 b b)))) |
#s(approx (+ a b) b) |
#s(approx (+ a b) (+.f64 b a)) |
#s(approx (- a b) (neg.f64 b)) |
#s(approx (- a b) (-.f64 a b)) |
#s(approx (sqrt (* (+ a b) (- a b))) a) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64) (/.f64 (*.f64 (*.f64 b b) #s(literal -1/2 binary64)) (*.f64 a a))) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 b b) b) (*.f64 (*.f64 b b) b)) (*.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 a a) a))) #s(literal -1/16 binary64) (*.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64)))) a)) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) a) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) (*.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) a) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (fma.f64 (*.f64 #s(literal 0 binary64) (/.f64 b a)) #s(literal 1/2 binary64) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (fma.f64 #s(literal 1/2 binary64) (fma.f64 #s(literal 0 binary64) (/.f64 b a) (/.f64 (-.f64 (neg.f64 (*.f64 b b)) (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal 1/4 binary64))) (*.f64 a a))) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (+.f64 (fma.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (/.f64 (-.f64 (neg.f64 (*.f64 b b)) (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal 1/4 binary64))) (*.f64 (*.f64 a a) a))) #s(literal -1/4 binary64) (*.f64 #s(literal 1/2 binary64) (fma.f64 #s(literal 0 binary64) (/.f64 b a) (/.f64 (-.f64 (neg.f64 (*.f64 b b)) (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal 1/4 binary64))) (*.f64 a a))))) #s(literal 1 binary64)) a)) |
#s(approx (* (+ a b) (- a b)) (*.f64 a a)) |
#s(approx (* (+ a b) (- a b)) (*.f64 (fma.f64 #s(literal 0 binary64) (/.f64 b a) #s(literal 1 binary64)) (*.f64 a a))) |
#s(approx (* (+ a b) (- a b)) (*.f64 (+.f64 (fma.f64 (/.f64 b a) #s(literal -1 binary64) #s(literal 1 binary64)) (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1 binary64) (/.f64 b a))) (*.f64 a a))) |
#s(approx (+ a b) a) |
#s(approx (+ a b) (*.f64 (+.f64 (/.f64 b a) #s(literal 1 binary64)) a)) |
#s(approx (- a b) a) |
#s(approx (- a b) (*.f64 (fma.f64 (/.f64 b a) #s(literal -1 binary64) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (neg.f64 a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 a) (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64) (/.f64 (*.f64 (*.f64 b b) #s(literal -1/2 binary64)) (*.f64 a a))) #s(literal 1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 a) (+.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 b b) b) (*.f64 (*.f64 b b) b)) (*.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 a a) a))) #s(literal -1/16 binary64) (*.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64)))))) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) (*.f64 (neg.f64 a) (-.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 b b)) (*.f64 a a)) #s(literal 1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (neg.f64 (neg.f64 a))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 a) (fma.f64 (*.f64 #s(literal 0 binary64) (/.f64 b a)) #s(literal -1/2 binary64) #s(literal -1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (fma.f64 (/.f64 (fma.f64 b b (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal -1 binary64)))) a) #s(literal -1/2 binary64) (*.f64 (*.f64 #s(literal 0 binary64) b) #s(literal 1/2 binary64))) a) #s(literal -1 binary64) #s(literal -1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (fma.f64 (*.f64 #s(literal 0 binary64) b) #s(literal 1/2 binary64) (neg.f64 (/.f64 (fma.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (/.f64 (fma.f64 b b (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal -1 binary64)))) (neg.f64 a))) #s(literal 1/4 binary64) (*.f64 (fma.f64 b b (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal -1 binary64)))) #s(literal 1/2 binary64))) a))) a) #s(literal -1 binary64) #s(literal -1 binary64)))) |
#s(approx (* (+ a b) (- a b)) (*.f64 (fma.f64 (/.f64 (fma.f64 b (/.f64 b a) (neg.f64 (*.f64 #s(literal 0 binary64) b))) a) #s(literal -1 binary64) #s(literal 1 binary64)) (*.f64 a a))) |
#s(approx (+ a b) (*.f64 (neg.f64 a) (-.f64 (/.f64 (neg.f64 b) a) #s(literal 1 binary64)))) |
#s(approx (- a b) (*.f64 (neg.f64 a) (-.f64 (/.f64 b a) #s(literal 1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (-.f64 (/.f64 (*.f64 #s(literal -1/8 binary64) (*.f64 b b)) (*.f64 (*.f64 a a) a)) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b) a)) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
#s(approx (* b b) (*.f64 b b)) |
#s(approx b b) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) b) a) #s(literal 1/2 binary64) a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (fma.f64 (*.f64 b (/.f64 (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) (*.f64 a a)) #s(literal 1/4 binary64) #s(literal 1 binary64)) a)) #s(literal -1/2 binary64) (*.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) a) #s(literal 1/2 binary64))) b a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (fma.f64 (fma.f64 (fma.f64 (*.f64 b (/.f64 (*.f64 (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) (*.f64 a a)) #s(literal 1/4 binary64) #s(literal 1 binary64)) (*.f64 #s(literal 0 binary64) a)) (*.f64 (*.f64 a a) a))) #s(literal 1/4 binary64) (*.f64 (/.f64 (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) (*.f64 a a)) #s(literal 1/4 binary64) #s(literal 1 binary64)) a) #s(literal -1/2 binary64))) b (*.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) a) #s(literal 1/2 binary64))) b a)) |
#s(approx (* (+ a b) (- a b)) (fma.f64 (*.f64 #s(literal 0 binary64) a) b (*.f64 a a))) |
#s(approx (* (+ a b) (- a b)) (fma.f64 (fma.f64 #s(literal 0 binary64) a (neg.f64 b)) b (*.f64 a a))) |
#s(approx (- a b) (fma.f64 #s(literal -1 binary64) b a)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 a a)) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (+ (* (/ (* b b) a) -1/2) a) (*.f64 (-.f64 (/.f64 a (*.f64 b b)) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (fma.f64 (/.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (fma.f64 #s(literal 1/2 binary64) (+.f64 (/.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (+.f64 (fma.f64 (*.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 (*.f64 b b) b)) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal -1/4 binary64) (*.f64 #s(literal 1/2 binary64) (+.f64 (/.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))))) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (* (+ a b) (- a b)) (*.f64 (-.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) #s(literal 1 binary64)) (*.f64 b b))) |
#s(approx (* (+ a b) (- a b)) (*.f64 (-.f64 (fma.f64 #s(literal 0 binary64) (/.f64 a b) (/.f64 (*.f64 a a) (*.f64 b b))) #s(literal 1 binary64)) (*.f64 b b))) |
#s(approx (+ a b) (*.f64 (+.f64 (/.f64 a b) #s(literal 1 binary64)) b)) |
#s(approx (- a b) (*.f64 (-.f64 (/.f64 a b) #s(literal 1 binary64)) b)) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 b) (sqrt.f64 #s(literal -1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 b) (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 a a)) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 b) (sqrt.f64 #s(literal -1 binary64)))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) (sqrt.f64 #s(literal -1 binary64))) #s(literal -1/2 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (fma.f64 (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) #s(literal -1/2 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 0 binary64) a)) (sqrt.f64 #s(literal -1 binary64)))) b) #s(literal -1 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (sqrt (* (+ a b) (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (fma.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (neg.f64 (/.f64 (fma.f64 (*.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b)) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal 1/4 binary64) (*.f64 (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64))) b))) b) #s(literal -1 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (* (+ a b) (- a b)) (*.f64 (-.f64 (neg.f64 (*.f64 #s(literal 0 binary64) (/.f64 a b))) #s(literal 1 binary64)) (*.f64 b b))) |
#s(approx (* (+ a b) (- a b)) (*.f64 (-.f64 (neg.f64 (/.f64 (fma.f64 #s(literal 0 binary64) a (neg.f64 (/.f64 (*.f64 a a) b))) b)) #s(literal 1 binary64)) (*.f64 b b))) |
#s(approx (+ a b) (*.f64 (neg.f64 b) (-.f64 (/.f64 (neg.f64 a) b) #s(literal 1 binary64)))) |
#s(approx (- a b) (*.f64 (neg.f64 b) (fma.f64 (/.f64 a b) #s(literal -1 binary64) #s(literal 1 binary64)))) |
Compiled 2 848 to 502 computations (82.4% saved)
4 alts after pruning (2 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 121 | 2 | 123 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 2 | 3 |
| Done | 0 | 0 | 0 |
| Total | 122 | 4 | 126 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 99.2% | (*.f64 (sqrt.f64 (+.f64 b a)) (sqrt.f64 (-.f64 a b))) |
| ✓ | 58.6% | (sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
| ▶ | 99.5% | #s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a)) |
| ✓ | 98.5% | #s(approx (sqrt (- (* a a) (* b b))) a) |
Compiled 44 to 31 computations (29.5% saved)
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a)) |
(fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a) |
(*.f64 b (/.f64 b a)) |
b |
(/.f64 b a) |
a |
#s(literal -1/2 binary64) |
(*.f64 (sqrt.f64 (+.f64 b a)) (sqrt.f64 (-.f64 a b))) |
(sqrt.f64 (+.f64 b a)) |
(+.f64 b a) |
(sqrt.f64 (-.f64 a b)) |
(-.f64 a b) |
| Outputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* 1/2 (/ (pow a 2) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* -1/8 (/ (pow a 2) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* (pow a 2) (- (* 1/16 (/ (pow a 2) (* (pow b 5) (pow (sqrt -1) 5)))) (* 1/8 (/ 1 (* (pow b 3) (pow (sqrt -1) 3)))))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* -1/2 (/ (pow b 2) a)))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (/ (+ (* -1/2 (pow b 2)) (pow a 2)) a))) |
#s(approx (* b (/ b a)) #s(hole binary64 (/ (pow b 2) a))) |
#s(approx (/ b a) #s(hole binary64 (/ b a))) |
#s(approx a #s(hole binary64 a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ (* 1/2 (/ (* a (+ b (* -1 b))) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (* a (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2)))))) (* b (sqrt -1)))) (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))))) (* b (sqrt -1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))) (* a (+ (* -1/4 (/ (* a (* (+ b (* -1 b)) (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))))) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))) (* b (sqrt -1)))))))) (* b (sqrt -1))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (sqrt b))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt b) (* 1/2 (* a (sqrt (/ 1 b))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt b) (* a (+ (* -1/8 (* a (sqrt (/ 1 (pow b 3))))) (* 1/2 (sqrt (/ 1 b)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt b) (* a (+ (* 1/2 (sqrt (/ 1 b))) (* a (+ (* -1/8 (sqrt (/ 1 (pow b 3)))) (* 1/16 (* a (sqrt (/ 1 (pow b 5)))))))))))) |
#s(approx (+ b a) #s(hole binary64 b)) |
#s(approx (+ b a) #s(hole binary64 (+ a b))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* (sqrt b) (sqrt -1)))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 b)))) (* (sqrt b) (sqrt -1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (* a (+ (* -1/8 (* (/ a (pow (sqrt -1) 3)) (sqrt (/ 1 (pow b 3))))) (* 1/2 (* (sqrt (/ 1 b)) (/ 1 (sqrt -1)))))) (* (sqrt b) (sqrt -1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (* a (+ (* 1/2 (* (sqrt (/ 1 b)) (/ 1 (sqrt -1)))) (* a (+ (* -1/8 (* (sqrt (/ 1 (pow b 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (/ a (pow (sqrt -1) 5)) (sqrt (/ 1 (pow b 5))))))))) (* (sqrt b) (sqrt -1))))) |
#s(approx (- a b) #s(hole binary64 (* -1 b))) |
#s(approx (- a b) #s(hole binary64 (- a b))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 a)) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* a (+ 1 (* 1/2 (/ (+ b (* -1 b)) a)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* a (+ 1 (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2)))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* a (+ 1 (+ (* -1/4 (/ (* (+ b (* -1 b)) (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2)))) (pow a 3))) (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (sqrt a))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2))) (* 1/2 (* (sqrt (/ 1 (pow a 3))) b))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow a 7))) (pow b 3))) (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)))))))) |
#s(approx (+ b a) #s(hole binary64 a)) |
#s(approx (+ b a) #s(hole binary64 (* a (+ 1 (/ b a))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (sqrt a))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (* -1/2 (* (sqrt (/ 1 (pow a 3))) b)))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2)))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/2 (* (sqrt (/ 1 (pow a 3))) b)) (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2))) (* -1/16 (* (sqrt (/ 1 (pow a 7))) (pow b 3))))))))) |
#s(approx (- a b) #s(hole binary64 a)) |
#s(approx (- a b) #s(hole binary64 (* a (+ 1 (* -1 (/ b a)))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 a))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6)))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* -1 (* a (- (* 1/2 (/ (pow b 2) (pow a 2))) 1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (pow (sqrt -1) 2))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1/2 (/ (+ b (* -1 b)) a)) (pow (sqrt -1) 2)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1/2 (/ (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ b (* -1 b)) (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2))))) (* a (pow (sqrt -1) 2)))) (* 1/2 (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* (sqrt a) (pow (sqrt -1) 2))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* a (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (/ (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (/ (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow a 7))) (/ (pow b 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))))) |
#s(approx (+ b a) #s(hole binary64 (* -1 (* a (- (* -1 (/ b a)) 1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* (sqrt a) (pow (sqrt -1) 2))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* a (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) (* b (pow (sqrt -1) 2)))) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (* (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) (* b (pow (sqrt -1) 2)))) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2)))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (* (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow a 7))) (* (pow b 3) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) (* b (pow (sqrt -1) 2)))) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* a (- (/ b a) 1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* -1/8 (/ (pow b 2) (pow a 3))) (* 1/2 (/ 1 a))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* (pow b 2) (- (* -1/16 (/ (pow b 2) (pow a 5))) (* 1/8 (/ 1 (pow a 3))))) (* 1/2 (/ 1 a))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx b #s(hole binary64 b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ a (* 1/2 (/ (* b (+ a (* -1 a))) a))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ a (* b (+ (* -1/2 (/ (* b (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2))))) a)) (* 1/2 (/ (+ a (* -1 a)) a))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ a (* b (+ (* 1/2 (/ (+ a (* -1 a)) a)) (* b (+ (* -1/2 (/ (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) a)) (* 1/4 (/ (* b (* (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) (+ a (* -1 a)))) (pow a 3)))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt a) (* 1/2 (* (sqrt (/ 1 a)) b))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt a) (* b (+ (* -1/8 (* (sqrt (/ 1 (pow a 3))) b)) (* 1/2 (sqrt (/ 1 a)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt a) (* b (+ (* 1/2 (sqrt (/ 1 a))) (* b (+ (* -1/8 (sqrt (/ 1 (pow a 3)))) (* 1/16 (* (sqrt (/ 1 (pow a 5))) b))))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (sqrt a) (* -1/2 (* (sqrt (/ 1 a)) b))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (sqrt a) (* b (+ (* -1/2 (sqrt (/ 1 a))) (* -1/8 (* (sqrt (/ 1 (pow a 3))) b))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (sqrt a) (* b (+ (* -1/2 (sqrt (/ 1 a))) (* b (+ (* -1/8 (sqrt (/ 1 (pow a 3)))) (* -1/16 (* (sqrt (/ 1 (pow a 5))) b))))))))) |
#s(approx (- a b) #s(hole binary64 (+ a (* -1 b)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* (pow b 2) (- (/ a (pow b 2)) (* 1/2 (/ 1 a)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* (pow b 3) (pow (sqrt -1) 3)))) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* b (+ (sqrt (/ 1 b)) (* 1/2 (* a (sqrt (/ 1 (pow b 3))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* b (+ (sqrt (/ 1 b)) (+ (* -1/8 (* (pow a 2) (sqrt (/ 1 (pow b 5))))) (* 1/2 (* a (sqrt (/ 1 (pow b 3)))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* b (+ (sqrt (/ 1 b)) (+ (* -1/8 (* (pow a 2) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (pow a 3) (sqrt (/ 1 (pow b 7))))) (* 1/2 (* a (sqrt (/ 1 (pow b 3))))))))))) |
#s(approx (+ b a) #s(hole binary64 (* b (+ 1 (/ a b))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* b (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1)))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 3)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 3)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (/ (pow a 3) (pow (sqrt -1) 5)) (sqrt (/ 1 (pow b 7))))) (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1)))))))) |
#s(approx (- a b) #s(hole binary64 (* b (- (/ a b) 1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1/2 (/ (+ a (* -1 a)) (* b (sqrt -1))))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* b (sqrt -1)))) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* b (pow (sqrt -1) 3)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (sqrt -1)))) b)) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* (sqrt b) (pow (sqrt -1) 2))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* b (+ (* 1/2 (* a (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (pow (sqrt -1) 2))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/2 (* a (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (pow (sqrt -1) 2)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (/ (pow a 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow b 7))))) (+ (* 1/2 (* a (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (pow (sqrt -1) 2))))))))) |
#s(approx (+ b a) #s(hole binary64 (* -1 (* b (- (* -1 (/ a b)) 1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* (sqrt b) (sqrt -1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* b (+ (* 1/2 (* (* a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (* (pow a 2) (sqrt -1)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/2 (* (* a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1)))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (* (pow a 2) (sqrt -1)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (* (pow a 3) (sqrt -1)) (sqrt (/ 1 (pow b 7))))) (+ (* 1/2 (* (* a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1))))))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* b (+ 1 (* -1 (/ a b))))))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 16.0ms | a | @ | 0 | ((sqrt (- (* a a) (* b b))) (+ (* (* b (/ b a)) -1/2) a) (* b (/ b a)) b (/ b a) a -1/2 (* (sqrt (+ b a)) (sqrt (- a b))) (sqrt (+ b a)) (+ b a) (sqrt (- a b)) (- a b)) |
| 4.0ms | b | @ | -inf | ((sqrt (- (* a a) (* b b))) (+ (* (* b (/ b a)) -1/2) a) (* b (/ b a)) b (/ b a) a -1/2 (* (sqrt (+ b a)) (sqrt (- a b))) (sqrt (+ b a)) (+ b a) (sqrt (- a b)) (- a b)) |
| 3.0ms | b | @ | inf | ((sqrt (- (* a a) (* b b))) (+ (* (* b (/ b a)) -1/2) a) (* b (/ b a)) b (/ b a) a -1/2 (* (sqrt (+ b a)) (sqrt (- a b))) (sqrt (+ b a)) (+ b a) (sqrt (- a b)) (- a b)) |
| 3.0ms | a | @ | -inf | ((sqrt (- (* a a) (* b b))) (+ (* (* b (/ b a)) -1/2) a) (* b (/ b a)) b (/ b a) a -1/2 (* (sqrt (+ b a)) (sqrt (- a b))) (sqrt (+ b a)) (+ b a) (sqrt (- a b)) (- a b)) |
| 2.0ms | a | @ | inf | ((sqrt (- (* a a) (* b b))) (+ (* (* b (/ b a)) -1/2) a) (* b (/ b a)) b (/ b a) a -1/2 (* (sqrt (+ b a)) (sqrt (- a b))) (sqrt (+ b a)) (+ b a) (sqrt (- a b)) (- a b)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 659 | 3608 |
| 0 | 671 | 3130 |
| 0 | 3905 | 3000 |
| 1× | iter-limit |
| 1× | iter-limit |
| 1× | node-limit |
| 1× | iter-limit |
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a)) |
(fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a) |
(*.f64 b (/.f64 b a)) |
b |
(/.f64 b a) |
a |
#s(literal -1/2 binary64) |
(*.f64 (sqrt.f64 (+.f64 b a)) (sqrt.f64 (-.f64 a b))) |
(sqrt.f64 (+.f64 b a)) |
(+.f64 b a) |
(sqrt.f64 (-.f64 a b)) |
(-.f64 a b) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* 1/2 (/ (pow a 2) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* -1/8 (/ (pow a 2) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ (* b (sqrt -1)) (* (pow a 2) (+ (* (pow a 2) (- (* 1/16 (/ (pow a 2) (* (pow b 5) (pow (sqrt -1) 5)))) (* 1/8 (/ 1 (* (pow b 3) (pow (sqrt -1) 3)))))) (* 1/2 (/ 1 (* b (sqrt -1))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* -1/2 (/ (pow b 2) a)))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (/ (+ (* -1/2 (pow b 2)) (pow a 2)) a))) |
#s(approx (* b (/ b a)) #s(hole binary64 (/ (pow b 2) a))) |
#s(approx (/ b a) #s(hole binary64 (/ b a))) |
#s(approx a #s(hole binary64 a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (sqrt -1)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ (* 1/2 (/ (* a (+ b (* -1 b))) (* b (sqrt -1)))) (* b (sqrt -1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (* a (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2)))))) (* b (sqrt -1)))) (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))))) (* b (sqrt -1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ (* a (+ (* 1/2 (/ (+ b (* -1 b)) (* b (sqrt -1)))) (* a (+ (* -1/4 (/ (* a (* (+ b (* -1 b)) (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))))) (* (pow b 3) (pow (sqrt -1) 3)))) (* 1/2 (/ (- 1 (* 1/4 (/ (pow (+ b (* -1 b)) 2) (* (pow b 2) (pow (sqrt -1) 2))))) (* b (sqrt -1)))))))) (* b (sqrt -1))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (sqrt b))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt b) (* 1/2 (* a (sqrt (/ 1 b))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt b) (* a (+ (* -1/8 (* a (sqrt (/ 1 (pow b 3))))) (* 1/2 (sqrt (/ 1 b)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt b) (* a (+ (* 1/2 (sqrt (/ 1 b))) (* a (+ (* -1/8 (sqrt (/ 1 (pow b 3)))) (* 1/16 (* a (sqrt (/ 1 (pow b 5)))))))))))) |
#s(approx (+ b a) #s(hole binary64 b)) |
#s(approx (+ b a) #s(hole binary64 (+ a b))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* (sqrt b) (sqrt -1)))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 b)))) (* (sqrt b) (sqrt -1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (* a (+ (* -1/8 (* (/ a (pow (sqrt -1) 3)) (sqrt (/ 1 (pow b 3))))) (* 1/2 (* (sqrt (/ 1 b)) (/ 1 (sqrt -1)))))) (* (sqrt b) (sqrt -1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (* a (+ (* 1/2 (* (sqrt (/ 1 b)) (/ 1 (sqrt -1)))) (* a (+ (* -1/8 (* (sqrt (/ 1 (pow b 3))) (/ 1 (pow (sqrt -1) 3)))) (* 1/16 (* (/ a (pow (sqrt -1) 5)) (sqrt (/ 1 (pow b 5))))))))) (* (sqrt b) (sqrt -1))))) |
#s(approx (- a b) #s(hole binary64 (* -1 b))) |
#s(approx (- a b) #s(hole binary64 (- a b))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 a)) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 a)) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* a (+ 1 (* 1/2 (/ (+ b (* -1 b)) a)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* a (+ 1 (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2)))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* a (+ 1 (+ (* -1/4 (/ (* (+ b (* -1 b)) (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2)))) (pow a 3))) (+ (* 1/2 (/ (+ b (* -1 b)) a)) (* 1/2 (/ (- (* -1 (pow b 2)) (* 1/4 (pow (+ b (* -1 b)) 2))) (pow a 2))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (sqrt a))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2))) (* 1/2 (* (sqrt (/ 1 (pow a 3))) b))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow a 7))) (pow b 3))) (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)))))))) |
#s(approx (+ b a) #s(hole binary64 a)) |
#s(approx (+ b a) #s(hole binary64 (* a (+ 1 (/ b a))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (sqrt a))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (* -1/2 (* (sqrt (/ 1 (pow a 3))) b)))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2)))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* a (+ (sqrt (/ 1 a)) (+ (* -1/2 (* (sqrt (/ 1 (pow a 3))) b)) (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (pow b 2))) (* -1/16 (* (sqrt (/ 1 (pow a 7))) (pow b 3))))))))) |
#s(approx (- a b) #s(hole binary64 a)) |
#s(approx (- a b) #s(hole binary64 (* a (+ 1 (* -1 (/ b a)))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 a))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (* -1/2 (/ (pow b 2) (pow a 2)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (* -1/8 (/ (pow b 4) (pow a 4))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* a (+ 1 (+ (* -1/2 (/ (pow b 2) (pow a 2))) (+ (* -1/8 (/ (pow b 4) (pow a 4))) (* -1/16 (/ (pow b 6) (pow a 6)))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* -1 (* a (- (* 1/2 (/ (pow b 2) (pow a 2))) 1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (pow (sqrt -1) 2))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1/2 (/ (+ b (* -1 b)) a)) (pow (sqrt -1) 2)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1/2 (/ (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* a (+ (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ b (* -1 b)) (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2))))) (* a (pow (sqrt -1) 2)))) (* 1/2 (- (pow b 2) (* 1/4 (/ (pow (+ b (* -1 b)) 2) (pow (sqrt -1) 2)))))) a)) (* 1/2 (+ b (* -1 b)))) a)) (pow (sqrt -1) 2)))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* (sqrt a) (pow (sqrt -1) 2))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* a (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (/ (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (/ (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow a 7))) (/ (pow b 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) b)) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))))) |
#s(approx (+ b a) #s(hole binary64 (* -1 (* a (- (* -1 (/ b a)) 1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* (sqrt a) (pow (sqrt -1) 2))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* a (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) (* b (pow (sqrt -1) 2)))) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (* (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) (* b (pow (sqrt -1) 2)))) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2)))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* a (+ (* -1/8 (* (sqrt (/ 1 (pow a 5))) (* (pow b 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow a 7))) (* (pow b 3) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow a 3))) (* b (pow (sqrt -1) 2)))) (* (sqrt (/ 1 a)) (pow (sqrt -1) 2))))))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* a (- (/ b a) 1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* -1/8 (/ (pow b 2) (pow a 3))) (* 1/2 (/ 1 a))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (+ a (* (pow b 2) (- (* (pow b 2) (- (* -1/16 (/ (pow b 2) (pow a 5))) (* 1/8 (/ 1 (pow a 3))))) (* 1/2 (/ 1 a))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (+ a (* -1/2 (/ (pow b 2) a))))) |
#s(approx b #s(hole binary64 b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ a (* 1/2 (/ (* b (+ a (* -1 a))) a))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ a (* b (+ (* -1/2 (/ (* b (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2))))) a)) (* 1/2 (/ (+ a (* -1 a)) a))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (+ a (* b (+ (* 1/2 (/ (+ a (* -1 a)) a)) (* b (+ (* -1/2 (/ (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) a)) (* 1/4 (/ (* b (* (+ 1 (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow a 2)))) (+ a (* -1 a)))) (pow a 3)))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt a) (* 1/2 (* (sqrt (/ 1 a)) b))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt a) (* b (+ (* -1/8 (* (sqrt (/ 1 (pow a 3))) b)) (* 1/2 (sqrt (/ 1 a)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (+ (sqrt a) (* b (+ (* 1/2 (sqrt (/ 1 a))) (* b (+ (* -1/8 (sqrt (/ 1 (pow a 3)))) (* 1/16 (* (sqrt (/ 1 (pow a 5))) b))))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (sqrt a) (* -1/2 (* (sqrt (/ 1 a)) b))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (sqrt a) (* b (+ (* -1/2 (sqrt (/ 1 a))) (* -1/8 (* (sqrt (/ 1 (pow a 3))) b))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (+ (sqrt a) (* b (+ (* -1/2 (sqrt (/ 1 a))) (* b (+ (* -1/8 (sqrt (/ 1 (pow a 3)))) (* -1/16 (* (sqrt (/ 1 (pow a 5))) b))))))))) |
#s(approx (- a b) #s(hole binary64 (+ a (* -1 b)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) #s(hole binary64 (* (pow b 2) (- (/ a (pow b 2)) (* 1/2 (/ 1 a)))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* b (+ (sqrt -1) (+ (* -1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* (pow b 3) (pow (sqrt -1) 3)))) (+ (* 1/2 (/ (+ a (* -1 a)) (* b (sqrt -1)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* b (+ (sqrt (/ 1 b)) (* 1/2 (* a (sqrt (/ 1 (pow b 3))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* b (+ (sqrt (/ 1 b)) (+ (* -1/8 (* (pow a 2) (sqrt (/ 1 (pow b 5))))) (* 1/2 (* a (sqrt (/ 1 (pow b 3)))))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* b (+ (sqrt (/ 1 b)) (+ (* -1/8 (* (pow a 2) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (pow a 3) (sqrt (/ 1 (pow b 7))))) (* 1/2 (* a (sqrt (/ 1 (pow b 3))))))))))) |
#s(approx (+ b a) #s(hole binary64 (* b (+ 1 (/ a b))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* b (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1)))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 3)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 3)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (/ (pow a 3) (pow (sqrt -1) 5)) (sqrt (/ 1 (pow b 7))))) (+ (* 1/2 (* (/ a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1)))))))) |
#s(approx (- a b) #s(hole binary64 (* b (- (/ a b) 1)))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1)))))))))) |
#s(approx (sqrt (- (* a a) (* b b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (+ (* -1/8 (/ (pow a 4) (* (pow b 4) (pow (sqrt -1) 3)))) (+ (* 1/16 (/ (pow a 6) (* (pow b 6) (pow (sqrt -1) 5)))) (* 1/2 (/ (pow a 2) (* (pow b 2) (sqrt -1))))))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (sqrt -1))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1/2 (/ (+ a (* -1 a)) (* b (sqrt -1))))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (* b (sqrt -1)))) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) #s(hole binary64 (* -1 (* b (+ (sqrt -1) (* -1 (/ (+ (* -1 (/ (+ (* 1/4 (/ (* (+ a (* -1 a)) (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2))))) (* b (pow (sqrt -1) 3)))) (* 1/2 (/ (- (pow a 2) (* 1/4 (/ (pow (+ a (* -1 a)) 2) (pow (sqrt -1) 2)))) (sqrt -1)))) b)) (* 1/2 (/ (+ a (* -1 a)) (sqrt -1)))) b))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* (sqrt b) (pow (sqrt -1) 2))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* b (+ (* 1/2 (* a (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (pow (sqrt -1) 2))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/2 (* a (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (pow (sqrt -1) 2)))))))) |
#s(approx (sqrt (+ b a)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (/ (pow a 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (/ (pow a 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow b 7))))) (+ (* 1/2 (* a (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (pow (sqrt -1) 2))))))))) |
#s(approx (+ b a) #s(hole binary64 (* -1 (* b (- (* -1 (/ a b)) 1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* (sqrt b) (sqrt -1))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* b (+ (* 1/2 (* (* a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (* (pow a 2) (sqrt -1)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/2 (* (* a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1)))))))) |
#s(approx (sqrt (- a b)) #s(hole binary64 (* -1 (* b (+ (* -1/8 (* (* (pow a 2) (sqrt -1)) (sqrt (/ 1 (pow b 5))))) (+ (* 1/16 (* (* (pow a 3) (sqrt -1)) (sqrt (/ 1 (pow b 7))))) (+ (* 1/2 (* (* a (sqrt -1)) (sqrt (/ 1 (pow b 3))))) (* (sqrt (/ 1 b)) (sqrt -1))))))))) |
#s(approx (- a b) #s(hole binary64 (* -1 (* b (+ 1 (* -1 (/ a b))))))) |
| Outputs |
|---|
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64) a)) |
(/.f64 (-.f64 (*.f64 (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64)) (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64))) (*.f64 a a)) (-.f64 (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64)) a)) |
(/.f64 (-.f64 (*.f64 a a) (*.f64 (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64)) (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64)))) (-.f64 a (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64)))) |
(fma.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64) a) |
(fma.f64 #s(literal -1/2 binary64) (*.f64 (/.f64 b a) b) a) |
(fma.f64 b (*.f64 (/.f64 b a) #s(literal -1/2 binary64)) a) |
(-.f64 a (*.f64 #s(literal 1/2 binary64) (*.f64 (/.f64 b a) b))) |
(+.f64 (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64)) a) |
(+.f64 a (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64))) |
(*.f64 (/.f64 b a) b) |
(*.f64 b (/.f64 b a)) |
(/.f64 (neg.f64 (*.f64 b b)) (neg.f64 a)) |
(/.f64 (*.f64 b b) a) |
b |
(/.f64 (neg.f64 b) (neg.f64 a)) |
(/.f64 b a) |
a |
#s(literal -1/2 binary64) |
(*.f64 (sqrt.f64 (-.f64 a b)) (sqrt.f64 (+.f64 b a))) |
(*.f64 (sqrt.f64 (+.f64 b a)) (sqrt.f64 (-.f64 a b))) |
(sqrt.f64 (*.f64 (+.f64 b a) (-.f64 a b))) |
(sqrt.f64 (+.f64 b a)) |
(/.f64 (-.f64 (*.f64 b b) (*.f64 a a)) (-.f64 b a)) |
(/.f64 (fma.f64 (*.f64 b b) b (*.f64 (*.f64 a a) a)) (fma.f64 b b (-.f64 (*.f64 a a) (*.f64 b a)))) |
(/.f64 (fma.f64 (*.f64 a a) a (*.f64 (*.f64 b b) b)) (fma.f64 a a (-.f64 (*.f64 b b) (*.f64 a b)))) |
(/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (-.f64 a b)) |
(+.f64 b a) |
(+.f64 a b) |
(sqrt.f64 (-.f64 a b)) |
(/.f64 (-.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 b b) b)) (fma.f64 a a (fma.f64 b b (*.f64 a b)))) |
(/.f64 (*.f64 (+.f64 b a) (-.f64 a b)) (+.f64 b a)) |
(-.f64 a b) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (/.f64 (/.f64 (*.f64 a a) b) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)) (*.f64 (*.f64 b b) b))) #s(literal -1/8 binary64) (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) (*.f64 a a) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) (*.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) (/.f64 (fma.f64 (*.f64 b b) #s(literal -1/2 binary64) (*.f64 a a)) a)) |
#s(approx (* b (/ b a)) (*.f64 (/.f64 b a) b)) |
#s(approx (/ b a) (/.f64 b a)) |
#s(approx a a) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (/.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) a) b) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (*.f64 #s(literal 1/2 binary64) (fma.f64 (/.f64 a b) (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) (neg.f64 (*.f64 b b))) #s(literal 1/4 binary64))) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (/.f64 (*.f64 #s(literal 0 binary64) b) b) (sqrt.f64 #s(literal -1 binary64))))) a (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (fma.f64 (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) a) (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) (neg.f64 (*.f64 b b))) #s(literal 1/4 binary64)))) (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)) (*.f64 (*.f64 b b) b))) #s(literal -1/4 binary64) (*.f64 (/.f64 (-.f64 #s(literal 1 binary64) (*.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) (neg.f64 (*.f64 b b))) #s(literal 1/4 binary64))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) #s(literal 1/2 binary64))) a (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) #s(literal 1/2 binary64)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) a (*.f64 (sqrt.f64 #s(literal -1 binary64)) b))) |
#s(approx (sqrt (+ b a)) (sqrt.f64 b)) |
#s(approx (sqrt (+ b a)) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 b)) a) #s(literal 1/2 binary64) (sqrt.f64 b))) |
#s(approx (sqrt (+ b a)) (fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) a) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 b b) b))) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 b)) #s(literal 1/2 binary64))) a (sqrt.f64 b))) |
#s(approx (+ b a) b) |
#s(approx (+ b a) (+.f64 b a)) |
#s(approx (sqrt (- a b)) (sqrt.f64 (neg.f64 b))) |
#s(approx (sqrt (- a b)) (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 a (sqrt.f64 #s(literal -1 binary64)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 b)) (sqrt.f64 (neg.f64 b)))) |
#s(approx (sqrt (- a b)) (fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) (/.f64 a (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 b b) b))) (*.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 b)) #s(literal 1/2 binary64)) (/.f64 #s(literal 1 binary64) (sqrt.f64 #s(literal -1 binary64))))) a (sqrt.f64 (neg.f64 b)))) |
#s(approx (- a b) (neg.f64 b)) |
#s(approx (- a b) (-.f64 a b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) a) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64) (/.f64 (*.f64 (*.f64 b b) #s(literal -1/2 binary64)) (*.f64 a a))) #s(literal 1 binary64)) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 b b) b) (*.f64 (*.f64 b b) b)) (*.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 a a) a))) #s(literal -1/16 binary64) (*.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64)))) a)) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) a) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) (*.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) a) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (fma.f64 (/.f64 (*.f64 #s(literal 0 binary64) b) a) #s(literal 1/2 binary64) #s(literal 1 binary64)) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (fma.f64 #s(literal 1/2 binary64) (+.f64 (/.f64 (*.f64 #s(literal 0 binary64) b) a) (/.f64 (-.f64 (neg.f64 (*.f64 b b)) (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal 1/4 binary64))) (*.f64 a a))) #s(literal 1 binary64)) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (+.f64 (fma.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (/.f64 (-.f64 (neg.f64 (*.f64 b b)) (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal 1/4 binary64))) (*.f64 (*.f64 a a) a))) #s(literal -1/4 binary64) (*.f64 #s(literal 1/2 binary64) (+.f64 (/.f64 (*.f64 #s(literal 0 binary64) b) a) (/.f64 (-.f64 (neg.f64 (*.f64 b b)) (*.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal 1/4 binary64))) (*.f64 a a))))) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (+ b a)) (sqrt.f64 a)) |
#s(approx (sqrt (+ b a)) (*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) (sqrt.f64 (/.f64 #s(literal 1 binary64) (*.f64 (*.f64 a a) a)))) b (/.f64 #s(literal 1 binary64) (sqrt.f64 a))) a)) |
#s(approx (+ b a) a) |
#s(approx (+ b a) (*.f64 (+.f64 (/.f64 b a) #s(literal 1 binary64)) a)) |
#s(approx (sqrt (- a b)) (sqrt.f64 a)) |
#s(approx (sqrt (- a b)) (*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) (sqrt.f64 (/.f64 #s(literal 1 binary64) (*.f64 (*.f64 a a) a)))) b (/.f64 #s(literal 1 binary64) (sqrt.f64 a))) a)) |
#s(approx (- a b) a) |
#s(approx (- a b) (*.f64 (fma.f64 (/.f64 b a) #s(literal -1 binary64) #s(literal 1 binary64)) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (neg.f64 a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 a) (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64) (/.f64 (*.f64 (*.f64 b b) #s(literal -1/2 binary64)) (*.f64 a a))) #s(literal 1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 a) (+.f64 (fma.f64 (/.f64 (*.f64 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (fma.f64 (/.f64 (*.f64 (*.f64 (*.f64 b b) b) (*.f64 (*.f64 b b) b)) (*.f64 (*.f64 (*.f64 a a) a) (*.f64 (*.f64 a a) a))) #s(literal -1/16 binary64) (*.f64 (/.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (*.f64 a a) (*.f64 a a))) #s(literal -1/8 binary64)))))) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) (*.f64 (neg.f64 a) (-.f64 (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 b b)) (*.f64 a a)) #s(literal 1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (neg.f64 (neg.f64 a))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (*.f64 #s(literal 0 binary64) b) a) #s(literal -1/2 binary64) #s(literal -1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (fma.f64 (/.f64 (fma.f64 b b (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal -1 binary64)))) a) #s(literal -1/2 binary64) (*.f64 (*.f64 #s(literal 0 binary64) b) #s(literal 1/2 binary64))) a) #s(literal -1 binary64) #s(literal -1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 a) (fma.f64 (/.f64 (fma.f64 (*.f64 #s(literal 0 binary64) b) #s(literal 1/2 binary64) (neg.f64 (/.f64 (fma.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (/.f64 (fma.f64 b b (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal -1 binary64)))) (neg.f64 a))) #s(literal 1/4 binary64) (*.f64 (fma.f64 b b (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) b) (*.f64 #s(literal 0 binary64) b)) #s(literal -1 binary64)))) #s(literal 1/2 binary64))) a))) a) #s(literal -1 binary64) #s(literal -1 binary64)))) |
#s(approx (sqrt (+ b a)) (neg.f64 (*.f64 (sqrt.f64 a) #s(literal -1 binary64)))) |
#s(approx (sqrt (+ b a)) (*.f64 (neg.f64 a) (fma.f64 (*.f64 #s(literal 1/2 binary64) (sqrt.f64 (/.f64 #s(literal 1 binary64) (*.f64 (*.f64 a a) a)))) b (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 a)) #s(literal -1 binary64))))) |
#s(approx (+ b a) (*.f64 (neg.f64 a) (-.f64 (/.f64 (neg.f64 b) a) #s(literal 1 binary64)))) |
#s(approx (sqrt (- a b)) (neg.f64 (*.f64 (sqrt.f64 a) #s(literal -1 binary64)))) |
#s(approx (sqrt (- a b)) (*.f64 (neg.f64 a) (fma.f64 (*.f64 (neg.f64 b) (sqrt.f64 (/.f64 #s(literal 1 binary64) (*.f64 (*.f64 a a) a)))) #s(literal 1/2 binary64) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 a)) #s(literal -1 binary64))))) |
#s(approx (- a b) (*.f64 (neg.f64 a) (-.f64 (/.f64 b a) #s(literal 1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (-.f64 (/.f64 (*.f64 #s(literal -1/8 binary64) (*.f64 b b)) (*.f64 (*.f64 a a) a)) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b) a)) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) (fma.f64 (*.f64 (/.f64 b a) b) #s(literal -1/2 binary64) a)) |
#s(approx b b) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) b) a) #s(literal 1/2 binary64) a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (fma.f64 (*.f64 b (/.f64 (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) (*.f64 a a)) #s(literal 1/4 binary64) #s(literal 1 binary64)) a)) #s(literal -1/2 binary64) (*.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) a) #s(literal 1/2 binary64))) b a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (fma.f64 (fma.f64 (fma.f64 (*.f64 b (/.f64 (*.f64 (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) (*.f64 a a)) #s(literal 1/4 binary64) #s(literal 1 binary64)) (*.f64 #s(literal 0 binary64) a)) (*.f64 (*.f64 a a) a))) #s(literal 1/4 binary64) (*.f64 (/.f64 (fma.f64 (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) (*.f64 a a)) #s(literal 1/4 binary64) #s(literal 1 binary64)) a) #s(literal -1/2 binary64))) b (*.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) a) #s(literal 1/2 binary64))) b a)) |
#s(approx (sqrt (+ b a)) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 a)) b) #s(literal 1/2 binary64) (sqrt.f64 a))) |
#s(approx (sqrt (+ b a)) (fma.f64 (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (*.f64 (*.f64 a a) a))) #s(literal -1/8 binary64)) b (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 a)) #s(literal 1/2 binary64))) b (sqrt.f64 a))) |
#s(approx (sqrt (- a b)) (fma.f64 (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 a)) b) #s(literal -1/2 binary64) (sqrt.f64 a))) |
#s(approx (sqrt (- a b)) (fma.f64 (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (*.f64 (*.f64 a a) a))) #s(literal -1/8 binary64)) b (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 a)) #s(literal -1/2 binary64))) b (sqrt.f64 a))) |
#s(approx (- a b) (fma.f64 #s(literal -1 binary64) b a)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 a a)) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (+ (* (* b (/ b a)) -1/2) a) (*.f64 (-.f64 (/.f64 a (*.f64 b b)) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (fma.f64 (/.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) b) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (fma.f64 #s(literal 1/2 binary64) (+.f64 (/.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) b) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (+.f64 (fma.f64 (*.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 (*.f64 b b) b)) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal -1/4 binary64) (*.f64 #s(literal 1/2 binary64) (+.f64 (/.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) b) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))))) (sqrt.f64 #s(literal -1 binary64))) b)) |
#s(approx (sqrt (+ b a)) (*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) a) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 b b) b))) (/.f64 #s(literal 1 binary64) (sqrt.f64 b))) b)) |
#s(approx (+ b a) (*.f64 (+.f64 (/.f64 a b) #s(literal 1 binary64)) b)) |
#s(approx (sqrt (- a b)) (*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) (/.f64 a (sqrt.f64 #s(literal -1 binary64)))) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 b b) b))) (sqrt.f64 (*.f64 (/.f64 #s(literal 1 binary64) b) #s(literal -1 binary64)))) b)) |
#s(approx (- a b) (*.f64 (-.f64 (/.f64 a b) #s(literal 1 binary64)) b)) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 b) (sqrt.f64 #s(literal -1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (*.f64 a a) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64)))) #s(literal 1/2 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 b) (+.f64 (fma.f64 (/.f64 (*.f64 (*.f64 a a) (*.f64 a a)) (*.f64 (*.f64 (*.f64 b b) (*.f64 b b)) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal -1/8 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 a a)) (*.f64 (*.f64 b b) (sqrt.f64 #s(literal -1 binary64))))) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 b) (sqrt.f64 #s(literal -1 binary64)))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) b) (sqrt.f64 #s(literal -1 binary64))) #s(literal -1/2 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (fma.f64 (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) b)) #s(literal -1/2 binary64) (/.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 #s(literal 0 binary64) a)) (sqrt.f64 #s(literal -1 binary64)))) b) #s(literal -1 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (* (sqrt (+ b a)) (sqrt (- a b))) (*.f64 (neg.f64 b) (fma.f64 (/.f64 (fma.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64) (neg.f64 (/.f64 (fma.f64 (*.f64 (/.f64 (*.f64 #s(literal 0 binary64) a) b) (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (*.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal -1 binary64)))) #s(literal 1/4 binary64) (*.f64 (/.f64 (fma.f64 a a (*.f64 #s(literal -1/4 binary64) (/.f64 (*.f64 (*.f64 #s(literal 0 binary64) a) (*.f64 #s(literal 0 binary64) a)) #s(literal -1 binary64)))) (sqrt.f64 #s(literal -1 binary64))) #s(literal 1/2 binary64))) b))) b) #s(literal -1 binary64) (sqrt.f64 #s(literal -1 binary64))))) |
#s(approx (sqrt (+ b a)) (neg.f64 (*.f64 (sqrt.f64 b) #s(literal -1 binary64)))) |
#s(approx (sqrt (+ b a)) (*.f64 (neg.f64 b) (fma.f64 (*.f64 #s(literal 1/2 binary64) a) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 b b) b))) (*.f64 (/.f64 #s(literal 1 binary64) (sqrt.f64 b)) #s(literal -1 binary64))))) |
#s(approx (+ b a) (*.f64 (neg.f64 b) (-.f64 (/.f64 (neg.f64 a) b) #s(literal 1 binary64)))) |
#s(approx (sqrt (- a b)) (neg.f64 (sqrt.f64 (neg.f64 b)))) |
#s(approx (sqrt (- a b)) (*.f64 (neg.f64 b) (fma.f64 (*.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) a)) (/.f64 #s(literal 1 binary64) (sqrt.f64 (*.f64 (*.f64 b b) b))) (sqrt.f64 (*.f64 (/.f64 #s(literal 1 binary64) b) #s(literal -1 binary64)))))) |
#s(approx (- a b) (*.f64 (neg.f64 b) (fma.f64 (/.f64 a b) #s(literal -1 binary64) #s(literal 1 binary64)))) |
Compiled 3 202 to 555 computations (82.7% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 130 | 0 | 130 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 2 | 2 |
| Total | 130 | 4 | 134 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.2% | (*.f64 (sqrt.f64 (+.f64 b a)) (sqrt.f64 (-.f64 a b))) |
| ✓ | 58.6% | (sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
| ✓ | 99.5% | #s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a)) |
| ✓ | 98.5% | #s(approx (sqrt (- (* a a) (* b b))) a) |
Compiled 113 to 58 computations (48.7% saved)
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
(sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a)) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (/.f64 (*.f64 b b) a) #s(literal -1/2 binary64) a)) |
(sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
(*.f64 (sqrt.f64 (+.f64 b a)) (sqrt.f64 (-.f64 a b))) |
| Outputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (*.f64 b (/.f64 b a)) #s(literal -1/2 binary64) a)) |
6 calls:
| 2.0ms | b |
| 2.0ms | a |
| 2.0ms | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 2.0ms | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 2.0ms | (*.f64 a a) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.5% | 1 | (*.f64 b b) |
| 99.5% | 1 | (*.f64 a a) |
| 99.5% | 1 | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 99.5% | 1 | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 99.5% | 1 | a |
| 99.5% | 1 | b |
Compiled 23 to 21 computations (8.7% saved)
Total -26.0b remaining (-2635.2%)
Threshold costs -26b (-2635.2%)
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
(sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
| Outputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
6 calls:
| 3.0ms | (*.f64 b b) |
| 1.0ms | a |
| 1.0ms | b |
| 1.0ms | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 1.0ms | (-.f64 (*.f64 a a) (*.f64 b b)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 98.5% | 1 | (*.f64 b b) |
| 98.5% | 1 | (*.f64 a a) |
| 98.5% | 1 | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 98.5% | 1 | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 98.5% | 1 | a |
| 98.5% | 1 | b |
Compiled 23 to 21 computations (8.7% saved)
| 1× | done |
Compiled 27 to 12 computations (55.6% saved)
(abs b)
Compiled 232 to 144 computations (37.9% saved)
Loading profile data...