We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25ae61f commit a3b0545Copy full SHA for a3b0545
src/core/rules.rkt
@@ -177,7 +177,7 @@
177
[common-denominator (+ (/ a b) (/ c d)) (/ (+ (* a d) (* c b)) (* b d))])
178
179
(define-rules polynomials
180
- [sqr-pow (pow a b) (copysign (* (pow (fabs a) (/ b 2)) (pow (fabs a) (/ b 2))) a)]
+ [sqr-pow (pow a b) (* (pow a (/ b 2)) (pow a (/ b 2))) #:unsound] ; unsound @ a = -1, b = 1
181
[flip-+ (+ a b) (sound-/ (- (* a a) (* b b)) (- a b) (+ a b))]
182
[flip-- (- a b) (sound-/ (- (* a a) (* b b)) (+ a b) (- a b))])
183
0 commit comments