Skip to content

Commit 25ae61f

Browse files
committed
Uncomment several unsound rules
1 parent f819c03 commit 25ae61f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/core/rules.rkt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@
166166

167167
; Fractions
168168
(define-rules arithmetic
169-
#;[sum-to-mult (+ a b) (* (+ 1 (/ b a)) a) #:unsound] ; unsound @ a = 0, b = 1
169+
[sum-to-mult (+ a b) (* (+ 1 (/ b a)) a) #:unsound] ; unsound @ a = 0, b = 1
170170
[sum-to-mult-rev (* (+ 1 (/ b a)) a) (+ a b)]
171-
#;[sub-to-mult (- a b) (* (- 1 (/ b a)) a) #:unsound] ; unsound @ a = 0, b = 1
171+
[sub-to-mult (- a b) (* (- 1 (/ b a)) a) #:unsound] ; unsound @ a = 0, b = 1
172172
[sub-to-mult-rev (* (- 1 (/ b a)) a) (- a b)]
173173
[add-to-fraction (+ c (/ b a)) (/ (+ (* c a) b) a)]
174174
[add-to-fraction-rev (/ (+ (* c a) b) a) (+ c (/ b a))]
@@ -359,10 +359,9 @@
359359
[pow-neg (pow a (neg b)) (sound-/ 1 (sound-pow a b 0) 0)])
360360

361361
(define-rules exponents
362-
#;[pow-to-exp (pow a b) (exp (* (log a) b)) #:unsound] ; unsound @ a = -1, b = 1
363-
#;[pow-add (pow a (+ b c)) (* (pow a b) (pow a c)) #:unsound] ; unsound @ a = -1, b = c = 1/2
364-
#;[pow-sub (pow a (- b c)) (/ (pow a b) (pow a c)) #:unsound] ; unsound @ a = -1, b = c = 1/2
365-
#;
362+
[pow-to-exp (pow a b) (exp (* (log a) b)) #:unsound] ; unsound @ a = -1, b = 1
363+
[pow-add (pow a (+ b c)) (* (pow a b) (pow a c)) #:unsound] ; unsound @ a = -1, b = c = 1/2
364+
[pow-sub (pow a (- b c)) (/ (pow a b) (pow a c)) #:unsound] ; unsound @ a = -1, b = c = 1/2
366365
[unpow-prod-down (pow (* b c) a) (* (pow b a) (pow c a)) #:unsound]) ; unsound @ a = 1/2, b = c = -1
367366

368367
; Logarithms

0 commit comments

Comments
 (0)