(lambda (v)
(let ((x (vector-ref v 0))
(p (vector-ref v 1))
- (t (vector-ref v 2))
- (maxerr (* 5 microcode-id/floating-epsilon)))
- (assert->= maxerr (relerr p (logistic x)))
+ (t (vector-ref v 2)))
+ (assert->= 1e-15 (relerr p (logistic x)))
(if (and (not (= p 0))
(not (= p 1)))
- (assert->= maxerr (relerr x (logit p))))
+ (assert->= 1e-15 (relerr x (logit p))))
(if (< p 1)
(begin
- (assert->= maxerr (relerr (- 1 p) (logistic (- x))))
+ (assert->= 1e-15 (relerr (- 1 p) (logistic (- x))))
(if (< (- 1 p) 1)
- (assert->= maxerr (relerr (- x) (logit (- 1 p))))))
+ (assert->= 1e-15 (relerr (- x) (logit (- 1 p))))))
(assert->= 1e-300 (logistic (- x))))
- (assert->= maxerr (relerr t (log-logistic x)))
+ (assert->= 1e-15 (relerr t (log-logistic x)))
(if (<= x 709)
- (assert->= maxerr (relerr x (logit-exp t))))
+ (assert->= 1e-15 (relerr x (logit-exp t))))
(if (< p 1)
- (assert->= maxerr (relerr (log1p (- p)) (log-logistic (- x))))))))
\ No newline at end of file
+ (assert->= 1e-15 (relerr (log1p (- p)) (log-logistic (- x))))))))
\ No newline at end of file