File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 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))]
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
You can’t perform that action at this time.
0 commit comments