Commit Graph

31 Commits (fda12a99723c8c0854c8ea5f7e0b7da845432343)

Author SHA1 Message Date
John Benediktsson fda12a9972 math.functions: adding generalized signum function. Fixes #509. 2012-05-03 14:44:10 -07:00
Doug Coleman 9a125e82e9 math.functions: rename exp to e^ to be consistent with 2^ and 10^. update things. 2012-05-02 10:22:23 -07:00
Doug Coleman 4338db58a4 math.functions: Add e^ and sigmoid functions. 2012-05-02 09:21:34 -07:00
John Benediktsson cf3e318f31 math.functions: adding another test for roots. 2012-04-19 13:34:42 -07:00
John Benediktsson 13a4e3f2a8 math.functions: adding "roots" word to get arbitrary roots from numbers. 2012-04-19 12:19:14 -07:00
John Benediktsson e05002f70a math.functions: adding docs and tests for ^mod. 2012-04-19 08:20:11 -07:00
Joe Groff eee483654a use radix literals 2011-11-23 19:03:40 -08:00
John Benediktsson 599f08f05d math.functions: when gcd is inlined, "gcd nip" is almost as good as "gcd*". 2011-10-18 10:30:39 -07:00
John Benediktsson 302cd52c74 math.functions: faster gcd means faster ratios. 2011-10-17 20:36:28 -07:00
Joe Groff 1d9f30b4bf math.functions: clean up some more to trim back load-time dependencies; alter tests to avoid inexact float constants where possible and hex-ify inexact constants otherwise 2011-09-22 16:04:49 -07:00
John Benediktsson a32c0ceb02 math.functions: test log with negative (really) bignums. 2011-09-22 11:15:06 -07:00
John Benediktsson 621c1c37a5 math.functions: implement "frexp" and support log of really big numbers. Fixes #160. 2011-09-22 09:42:28 -07:00
Joe Groff cd8f63c8bc math.functions: make sure zero zero ^ is always nan, regardless of the type of zero 2011-08-01 10:26:53 -07:00
Joe Groff f1ed3b1787 fix float integer^ for denormal results 2009-11-01 00:43:04 -05:00
Slava Pestov f1ce5ca191 math.functions: ~ now raises an invalid operation FP trap if one of the inputs is NaN 2009-09-29 23:41:08 -05:00
Slava Pestov 3a4465f6ae math.functions: fix ~ with negative (relative) tolerance 2009-09-22 03:19:47 -05:00
Slava Pestov 1b5614f974 math.functions: more accurate log10 (fixes problem reported by OneEyed) 2009-09-14 16:19:58 -05:00
Slava Pestov 5de5f5e430 math.functions: loosen tests up a bit since exp(1) on FreeBSD x86/64 differs from e in the last bit 2009-09-13 22:33:12 -05:00
Slava Pestov c19ec4b8ec math.functions: some fixes 2009-08-30 06:19:14 -05:00
Joe Groff ed10661c30 «0.0 1.0 ^» was returning 0 instead of 0.0 2009-06-11 17:47:52 -05:00
Slava Pestov 921de6ba3f math.functions: fix ^ for complex numbers 2009-05-31 23:28:29 -05:00
Joe Groff ca0c8937ca lerp functions 2009-05-05 13:55:00 -05:00
Slava Pestov 0ffd43e2e3 1.0/0.0 => 1/0. 2009-04-13 19:48:08 -05:00
Aaron Schaefer c698a83a12 Add divisor? math function 2009-04-01 19:29:19 -04:00
Slava Pestov 127f9b3578 Add unit tests for bignum bug 2009-02-22 19:41:47 -06:00
Slava Pestov 34792a9f23 Remove >r/r> 2008-12-17 19:17:37 -06:00
Slava Pestov 4c0f2cc3f5 Move factor-2s from miller-rabin to math.functions; use it to make ^ more efficient 2008-11-11 11:30:47 -06:00
unknown cc7ab11881 Add more unit tests 2008-11-07 20:34:04 -06:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Slava Pestov 110a5e5162 Change equality semantics 2008-09-02 02:02:05 -05:00
Slava Pestov d66f887736 Create basis vocab root 2008-07-28 22:03:13 -05:00