Tidy up error analysis of logit and logistic.
authorTaylor R Campbell <campbell@mumble.net>
Sun, 28 Oct 2018 04:13:26 +0000 (04:13 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sun, 28 Oct 2018 04:16:22 +0000 (04:16 +0000)
commitfa257b411b3469fdc38c4af3e3eee2b15540b2f6
tree90976c302ee9debdd43f54bf49cd32245b2e0fd5
parent6b0e6af0d6770eec0ab61da41cc44da5414322ec
Tidy up error analysis of logit and logistic.

Add (logit1/2+ p) = (logit (+ 1/2 p)) and (logistic-1/2 x) = (-
(logistic x) 1/2), for reasons like log1p and expm1.  Add some
trivial tests of the edge cases they cover where logit and logistic
are ill-conditioned.
src/runtime/arith.scm
src/runtime/runtime.pkg
tests/runtime/test-arith.scm