John Benediktsson
|
ebe1c6d63c
|
math.floats: fix M\ float /mod.
|
2013-03-29 08:48:28 -07:00 |
John Benediktsson
|
4d1ad95a2b
|
math.floats: adding some tests for M\ float mod.
|
2013-03-29 08:30:56 -07:00 |
John Benediktsson
|
a943a81969
|
math.parser: don't use variables in M\ ratio >base.
|
2013-03-28 14:31:55 -07:00 |
John Benediktsson
|
227c0cf8b1
|
math.parser: exactly allocate sbuf for fixnums.
|
2013-03-28 11:55:52 -07:00 |
John Benediktsson
|
72dc0ae49b
|
math.parser: do two digits down until 10.
|
2013-03-27 18:01:59 -07:00 |
John Benediktsson
|
12d90ed9d6
|
math.parser: faster using byte-arrays.
|
2013-03-27 17:54:24 -07:00 |
John Benediktsson
|
6848ba1355
|
math.parser: faster number>string.
|
2013-03-27 14:47:46 -07:00 |
Doug Coleman
|
e36ba8b90d
|
math.floats: Fix the output of /mod and add some unit tests. Fixes #803.
|
2013-03-20 17:43:56 -07:00 |
John Benediktsson
|
48a4a24147
|
math: implement /mod on floats.
|
2013-03-20 13:13:14 -07:00 |
Doug Coleman
|
56720db9bd
|
classes.builtin: Add the BUILTIN: keyword which lets builtin classes show up in source files. Probably could use save-location to allow editing, but it seemed to break things.
|
2013-03-10 12:05:38 -07:00 |
John Benediktsson
|
3337401551
|
core: cleanup USING lists.
|
2013-03-05 10:34:47 -08:00 |
John Benediktsson
|
40313076b2
|
math: speed up (find-integer) and (all-integers?) by removing curry.
|
2013-03-04 17:32:11 -08:00 |
John Benediktsson
|
d92e9ca853
|
math.integers: the fixnum-log2 intrinsic didn't work due to inlining.
|
2013-02-27 17:08:36 -08:00 |
John Benediktsson
|
4da316cf1b
|
math.integers: faster fixnum-log2.
|
2013-02-27 16:01:34 -08:00 |
Doug Coleman
|
99782d4f53
|
kernel: Add 4dup, 4drop, and 4cleave.
|
2012-10-22 09:47:34 -07:00 |
John Benediktsson
|
9f55e9f0a4
|
math.integers: fix docs for fixnum comparisons.
|
2012-09-21 10:05:33 -07:00 |
John Benediktsson
|
f91f6c7adc
|
Revert "math: speed up integer>fixnum operations."
This reverts commit b467db9a9a.
|
2012-09-16 07:46:22 -07:00 |
John Benediktsson
|
b467db9a9a
|
math: speed up integer>fixnum operations.
|
2012-09-15 08:52:06 -07:00 |
John Benediktsson
|
95c77845d0
|
math.integers: fix docs for >integer.
|
2012-09-15 08:51:19 -07:00 |
John Benediktsson
|
2dd24868fa
|
math.order: improve docs for invert-comparison.
|
2012-09-14 09:45:03 -07:00 |
John Benediktsson
|
e166b7c918
|
math.order: cleanup stack effects.
|
2012-09-14 09:36:09 -07:00 |
John Benediktsson
|
0676ac249a
|
math.order: make it more obvious this is a real<=>.
|
2012-09-14 09:19:26 -07:00 |
John Benediktsson
|
5ba7fe8920
|
math.order: speed up math comparisons using a math generic.
|
2012-09-14 08:43:29 -07:00 |
John Benediktsson
|
9992096028
|
math: cleaner "2/" speedup by using custom inlining.
|
2012-09-10 17:59:03 -07:00 |
John Benediktsson
|
85fa196939
|
math: faster definition of 2/ (allows inlining of fixnum-shift-fast).
|
2012-09-10 17:20:31 -07:00 |
John Benediktsson
|
b7e220ad9f
|
math.integers: inline fixnum-log2.
|
2012-09-10 17:20:12 -07:00 |
John Benediktsson
|
d40d7f3c35
|
math: faster recip for integers and ratios.
|
2012-09-02 09:47:31 -07:00 |
John Benediktsson
|
28491d9152
|
math: adding some tests for bignum bitnot.
|
2012-08-31 15:22:20 -07:00 |
John Benediktsson
|
3068da5a65
|
math.integers: faster fixnum-bit?.
|
2012-08-30 22:40:22 -07:00 |
Doug Coleman
|
d15a2357d1
|
core: Throw an error when assigning a bignum to a fixnum tuple slot if the bignum doesn't fit. Fixes #594.
|
2012-08-03 14:59:59 -07:00 |
Doug Coleman
|
f37b12e689
|
math.integers: Bignum hashcode* -- call bignum>fixnum to avoid a dispatch.
|
2012-07-23 09:38:12 -07:00 |
Doug Coleman
|
c25d044788
|
compiler: Fix bitand on ratios, floats. Fix shift on ratios, floats. Add integer>fixnum. Fixes #500.
|
2012-07-23 09:31:12 -07:00 |
John Benediktsson
|
e654e4afd9
|
Using "same?" in more places.
|
2012-07-21 10:22:44 -07:00 |
John Benediktsson
|
1a72249983
|
math: using if-zero in more places.
|
2012-06-18 14:32:39 -07:00 |
John Benediktsson
|
8f8c00c9f5
|
math.parser: simplify error types.
|
2012-06-08 07:32:01 -07:00 |
John Benediktsson
|
82f4fa723d
|
math.parser: add some tests for errors.
|
2012-06-06 15:14:52 -07:00 |
John Benediktsson
|
530ff420c7
|
math.parser: better error messages suggested by @erg.
|
2012-06-06 15:12:33 -07:00 |
John Benediktsson
|
ab75394ffc
|
math.parser: only allow 10 and 16 base for float>base.
|
2012-06-06 14:50:07 -07:00 |
Joe Groff
|
3f6306ef61
|
math.parser: hex> etc. shouldn't take radix prefix
Fixes #453
|
2011-12-16 17:20:05 -08:00 |
Doug Coleman
|
c3dcf43e03
|
core/basis: trim down using lists
|
2011-11-30 23:15:42 -08:00 |
Joe Groff
|
337b08d0b2
|
math.integers: make bignum/f round to even on tie
Fixes #372
|
2011-11-26 17:44:29 -08:00 |
Joe Groff
|
9bbe578e01
|
math.integers: pass tests even if number-base set
|
2011-11-26 17:37:17 -08:00 |
Joe Groff
|
fde94d2cb0
|
math.integers: test round-to-even-on-tie behavior
|
2011-11-26 16:03:43 -08:00 |
Joe Groff
|
c3f4282efe
|
math: neg? needs to be defined for all reals
|
2011-11-26 15:37:58 -08:00 |
Joe Groff
|
3c5fa11ede
|
math.parser: don't accept hex float without expt
Part of #372
|
2011-11-26 15:15:46 -08:00 |
Joe Groff
|
b38ce8a794
|
oops, radix prefixes shouldn't chain
|
2011-11-24 12:39:52 -08:00 |
Joe Groff
|
74c753ab39
|
math.parser: test harder
|
2011-11-24 12:34:50 -08:00 |
Joe Groff
|
f384633dbb
|
math.parser: reject "0x" etc. without any digits
|
2011-11-24 12:27:40 -08:00 |
Joe Groff
|
93e5b711a6
|
syntax: remove BIN: HEX: OCT:
|
2011-11-23 20:07:33 -08:00 |
Joe Groff
|
9cc643f907
|
math.parser: oops
|
2011-11-23 19:51:15 -08:00 |