Skip to content

Commit a3b0545

Browse files
committed
This one is unsound
1 parent 25ae61f commit a3b0545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/rules.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
[common-denominator (+ (/ a b) (/ c d)) (/ (+ (* a d) (* c b)) (* b d))])
178178

179179
(define-rules polynomials
180-
[sqr-pow (pow a b) (copysign (* (pow (fabs a) (/ b 2)) (pow (fabs a) (/ b 2))) a)]
180+
[sqr-pow (pow a b) (* (pow a (/ b 2)) (pow a (/ b 2))) #:unsound] ; unsound @ a = -1, b = 1
181181
[flip-+ (+ a b) (sound-/ (- (* a a) (* b b)) (- a b) (+ a b))]
182182
[flip-- (- a b) (sound-/ (- (* a a) (* b b)) (+ a b) (- a b))])
183183

0 commit comments

Comments
 (0)