
Time bar (total: 1.2s)
| 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)
| 603.0ms | 8 256× | 0 | valid |
| 27.0ms | 606× | 0 | invalid |
ival-mult!: 98.0ms (49.2% of total)ival-sqrt: 81.0ms (40.7% of total)ival-sub!: 19.0ms (9.5% of total)adjust: 2.0ms (1% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 130 | 0 | - | 1 | (6.242381616159041e-160 -6.015716055374162e-235) | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 20 | 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 | 115 | 0 |
| ↳ | (*.f64 b b) | overflow | 20 | |
| ↳ | (-.f64 (*.f64 a a) (*.f64 b b)) | overflow | 115 | |
| ↳ | (*.f64 a a) | overflow | 115 | |
-.f64 | (-.f64 (*.f64 a a) (*.f64 b b)) | nan-rescue | 20 | 0 |
| ↳ | (*.f64 a a) | overflow | 115 | |
| ↳ | (*.f64 b b) | overflow | 20 | |
sqrt.f64 | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) | uflow-rescue | 14 | 0 |
| ↳ | (*.f64 b b) | underflow | 102 | |
| ↳ | (-.f64 (*.f64 a a) (*.f64 b b)) | underflow | 14 | |
| ↳ | (*.f64 a a) | underflow | 14 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 129 | 1 |
| - | 0 | 126 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 129 | 0 | 1 |
| - | 0 | 0 | 126 |
| number | freq |
|---|---|
| 0 | 127 |
| 1 | 109 |
| 2 | 20 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 23.0ms | 512× | 0 | valid |
Compiled 58 to 22 computations (62.1% saved)
ival-mult!: 5.0ms (47.8% of total)ival-sqrt: 4.0ms (38.2% of total)ival-sub!: 1.0ms (9.6% of total)adjust: 0.0ms (0% of total)Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 50 |
| 1 | 55 | 50 |
| 2 | 214 | 50 |
| 3 | 344 | 50 |
| 4 | 875 | 50 |
| 5 | 1839 | 50 |
| 6 | 3017 | 50 |
| 7 | 3359 | 50 |
| 8 | 3437 | 50 |
| 9 | 3437 | 50 |
| 10 | 3633 | 50 |
| 1× | saturated |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 52.3% | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
(abs a)
(abs b)
Compiled 16 to 12 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 |
|---|
(pow.f64 (*.f64 (+.f64 a b) (-.f64 a b)) #s(literal 1/2 binary64)) |
(sqrt.f64 (*.f64 (+.f64 a b) (-.f64 a b))) |
(*.f64 (+.f64 a b) (-.f64 a b)) |
(/.f64 (-.f64 (pow.f64 a #s(literal 4 binary64)) (pow.f64 b #s(literal 4 binary64))) (fma.f64 a a (*.f64 b b))) |
(/.f64 (-.f64 (pow.f64 (*.f64 a a) #s(literal 3 binary64)) (pow.f64 (*.f64 b b) #s(literal 3 binary64))) (+.f64 (pow.f64 a #s(literal 4 binary64)) (+.f64 (pow.f64 b #s(literal 4 binary64)) (*.f64 (*.f64 a a) (*.f64 b b))))) |
(fma.f64 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64)) (*.f64 (neg.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 (pow.f64 a #s(literal 1 binary64)) (pow.f64 a #s(literal 1 binary64))) |
(*.f64 (neg.f64 a) (neg.f64 a)) |
(*.f64 (fabs.f64 a) (fabs.f64 a)) |
(*.f64 a a) |
(pow.f64 a #s(literal 2 binary64)) |
(exp.f64 (*.f64 (log.f64 a) #s(literal 2 binary64))) |
a |
(*.f64 (pow.f64 b #s(literal 1 binary64)) (pow.f64 b #s(literal 1 binary64))) |
(*.f64 (neg.f64 b) (neg.f64 b)) |
(*.f64 (fabs.f64 b) (fabs.f64 b)) |
(*.f64 b b) |
(pow.f64 b #s(literal 2 binary64)) |
(exp.f64 (*.f64 (log.f64 b) #s(literal 2 binary64))) |
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 a a) (pow.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) b) #s(literal 3 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 (sqrt (- (* a a) (* b b))) (fma.f64 (fma.f64 (-.f64 (/.f64 (*.f64 #s(literal 1/16 binary64) (*.f64 a a)) (pow.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) b) #s(literal 5 binary64))) (/.f64 #s(literal 1/8 binary64) (pow.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) b) #s(literal 3 binary64)))) (*.f64 a a) (/.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 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 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) (fma.f64 (/.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 a #s(literal 6 binary64))) #s(literal -1/16 binary64) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 binary64))))) #s(literal 1 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 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 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) (fma.f64 (/.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 a #s(literal 6 binary64))) #s(literal -1/16 binary64) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 binary64))))) #s(literal 1 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)) (pow.f64 a #s(literal 3 binary64))) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b) a)) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (-.f64 (*.f64 (fma.f64 (/.f64 (*.f64 b b) (pow.f64 a #s(literal 5 binary64))) #s(literal -1/16 binary64) (*.f64 #s(literal -1/8 binary64) (pow.f64 a #s(literal -3 binary64)))) (*.f64 b b)) (/.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 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 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 (sqrt (- (* a a) (* b b))) (*.f64 (+.f64 (fma.f64 (/.f64 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 binary64)))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (pow.f64 a #s(literal 6 binary64)) (*.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64)))) #s(literal 1/16 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 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 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 (sqrt (- (* a a) (* b b))) (neg.f64 (*.f64 (+.f64 (fma.f64 (/.f64 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 binary64)))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (pow.f64 a #s(literal 6 binary64)) (*.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64)))) #s(literal 1/16 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 1 031 to 228 computations (77.9% saved)
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 51 | 2 | 53 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 51 | 3 | 54 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 52.3% | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| ▶ | 1.1% | #s(approx (sqrt (- (* a a) (* b b))) (neg.f64 a)) |
| ▶ | 98.6% | #s(approx (sqrt (- (* a a) (* b b))) a) |
Compiled 29 to 21 computations (27.6% saved)
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
a |
#s(approx (sqrt (- (* a a) (* b b))) (neg.f64 a)) |
(neg.f64 a) |
| 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 (neg a) #s(hole binary64 (* -1 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 (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 (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 (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 | |
|---|---|---|---|---|
| 0.0ms | a | @ | -inf | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (neg a)) |
| 0.0ms | a | @ | inf | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (neg a)) |
| 0.0ms | a | @ | 0 | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (neg a)) |
| 0.0ms | b | @ | inf | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (neg a)) |
| 0.0ms | b | @ | -inf | ((sqrt (- (* a a) (* b b))) a (sqrt (- (* a a) (* b b))) (neg a)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 141 | 746 |
| 0 | 142 | 713 |
| 0 | 734 | 688 |
| 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))) (neg.f64 a)) |
(neg.f64 a) |
#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 (neg a) #s(hole binary64 (* -1 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 (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 (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 (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 |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
a |
#s(approx (sqrt (- (* a a) (* b b))) (neg.f64 a)) |
(*.f64 #s(literal -1 binary64) a) |
(*.f64 a #s(literal -1 binary64)) |
(neg.f64 a) |
#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 a a) (pow.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) b) #s(literal 3 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 (sqrt (- (* a a) (* b b))) (fma.f64 (fma.f64 (-.f64 (/.f64 (*.f64 #s(literal 1/16 binary64) (*.f64 a a)) (pow.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) b) #s(literal 5 binary64))) (/.f64 #s(literal 1/8 binary64) (pow.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) b) #s(literal 3 binary64)))) (*.f64 a a) (/.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 (neg a) (neg.f64 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 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 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) (fma.f64 (/.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 a #s(literal 6 binary64))) #s(literal -1/16 binary64) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 binary64))))) #s(literal 1 binary64)) 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 b b) (*.f64 a a)) #s(literal -1/2 binary64) #s(literal 1 binary64)) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 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) (fma.f64 (/.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 a #s(literal 6 binary64))) #s(literal -1/16 binary64) (/.f64 (*.f64 #s(literal -1/8 binary64) (pow.f64 b #s(literal 4 binary64))) (pow.f64 a #s(literal 4 binary64))))) #s(literal 1 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)) (pow.f64 a #s(literal 3 binary64))) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b) a)) |
#s(approx (sqrt (- (* a a) (* b b))) (fma.f64 (-.f64 (*.f64 (fma.f64 (/.f64 (*.f64 b b) (pow.f64 a #s(literal 5 binary64))) #s(literal -1/16 binary64) (*.f64 #s(literal -1/8 binary64) (pow.f64 a #s(literal -3 binary64)))) (*.f64 b b)) (/.f64 #s(literal 1/2 binary64) a)) (*.f64 b b) a)) |
#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 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 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 (sqrt (- (* a a) (* b b))) (*.f64 (+.f64 (fma.f64 (/.f64 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 binary64)))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (pow.f64 a #s(literal 6 binary64)) (*.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64)))) #s(literal 1/16 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 (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 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 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 (sqrt (- (* a a) (* b b))) (neg.f64 (*.f64 (+.f64 (fma.f64 (/.f64 (pow.f64 a #s(literal 4 binary64)) (*.f64 (pow.f64 b #s(literal 4 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 3/2 binary64)))) #s(literal -1/8 binary64) (fma.f64 (/.f64 (pow.f64 a #s(literal 6 binary64)) (*.f64 (pow.f64 b #s(literal 6 binary64)) (pow.f64 #s(literal -1 binary64) #s(literal 5/2 binary64)))) #s(literal 1/16 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 698 to 130 computations (81.4% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 25 | 0 | 25 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 1 | 1 |
| Total | 25 | 3 | 28 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 52.3% | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| ✓ | 1.1% | #s(approx (sqrt (- (* a a) (* b b))) (neg.f64 a)) |
| ✓ | 98.6% | #s(approx (sqrt (- (* a a) (* b b))) a) |
Compiled 58 to 34 computations (41.4% saved)
Total -62.4b remaining (-7048.8%)
Threshold costs -62.4b (-7048.8%)
| Inputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
#s(approx (sqrt (- (* a a) (* b b))) (neg.f64 a)) |
(sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| Outputs |
|---|
#s(approx (sqrt (- (* a a) (* b b))) a) |
6 calls:
| 8.0ms | a |
| 1.0ms | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 1.0ms | b |
| 1.0ms | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 1.0ms | (*.f64 a a) |
| Accuracy | Segments | Branch |
|---|---|---|
| 98.6% | 1 | (*.f64 b b) |
| 98.6% | 1 | (*.f64 a a) |
| 98.6% | 1 | (-.f64 (*.f64 a a) (*.f64 b b)) |
| 98.6% | 1 | (sqrt.f64 (-.f64 (*.f64 a a) (*.f64 b b))) |
| 98.6% | 1 | a |
| 98.6% | 1 | b |
Compiled 23 to 21 computations (8.7% saved)
| 1× | done |
Compiled 10 to 7 computations (30% saved)
(abs b)
Compiled 96 to 68 computations (29.2% saved)
Loading profile data...