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 |
Joe Groff
|
ee5e4caccf
|
math: add neg? word
Do the right thing with integers or floats
|
2011-11-23 19:51:05 -08:00 |
Joe Groff
|
eee483654a
|
use radix literals
|
2011-11-23 19:03:40 -08:00 |
Joe Groff
|
64017175de
|
math.parser: natively support 0b 0o 0x syntax
Closes #371
|
2011-11-23 18:30:22 -08:00 |
Joe Groff
|
a3228dc7a7
|
math.parser: undo some inlining to shrink size
For #318.
|
2011-11-11 15:49:53 -08:00 |
Doug Coleman
|
b5b27676c4
|
Update Windows for word renames, fix lint errors
|
2011-10-24 21:50:02 -07:00 |
John Benediktsson
|
a13676f3b6
|
Remove stack effects from HELP: declarations.
|
2011-10-20 19:36:11 -07:00 |
John Benediktsson
|
fd853f9958
|
Cleanup some lint warnings.
|
2011-10-15 19:19:44 -07:00 |
John Benediktsson
|
419f40f4ed
|
math.parser: cleanup uses of 16/8/2 >base/base>.
|
2011-10-14 10:09:12 -07:00 |
John Benediktsson
|
da21f5ca61
|
io.binary: make le> and be> faster (20% and 75%, respectively).
Removed primitive byte-array>bignum and digit_stream_to_bignum from vm/.
|
2011-10-11 21:13:30 -07:00 |
Doug Coleman
|
d5aa789b46
|
Remove extraneous using from math/
|
2011-09-25 19:32:35 -07:00 |
John Benediktsson
|
cce00c2651
|
math.order: Removing stack effect (not quite right).
|
2011-09-23 17:46:49 -07:00 |
John Benediktsson
|
ac8b589f9a
|
Adding stack effects.
|
2011-09-23 17:46:40 -07:00 |
John Benediktsson
|
f90135a924
|
math: fix docs for 'when-zero'.
|
2011-09-02 21:13:29 -07:00 |
Keita Haga
|
fa5b054865
|
math: fix typo in docs
|
2011-01-09 02:29:33 +09:00 |
Slava Pestov
|
d33eac01f4
|
math.integers: fix underflow and overflow behavior
|
2010-12-18 16:00:17 -08:00 |
Slava Pestov
|
b0b5f3ac97
|
Remove bignum>float VM primitive, and use bignum/f to implement >float on bignums instead, for a slight accuracy gain. Also, bignum/f now has a more efficient post-scaling algorithm to break the circular dependency on bignum>float
|
2010-11-24 22:41:15 -08:00 |
Slava Pestov
|
9948004217
|
math.integers: bignum/f rounding was wrong (reported by Joe Groff)
|
2010-11-13 16:02:12 -08:00 |
Slava Pestov
|
b16c0d8993
|
math.integers: fix 0 0 bignum/f (reported by Joe Groff)
|
2010-11-12 19:49:18 -08:00 |
Slava Pestov
|
f3dfae04ba
|
compiler: now that FFI has been deconcatenatized, we no longer need the special ##unary-float-function and ##binary-float-function fastpaths
|
2010-08-13 23:59:19 -07:00 |
Joe Groff
|
d649daaf4f
|
math: declare quotation stack effects on each-integer, times, find-integer, all-integers?
|
2010-05-13 14:30:19 -07:00 |
Doug Coleman
|
94147b220b
|
Fix typo in between? stack effect docs
|
2010-05-05 18:16:54 -05:00 |
Slava Pestov
|
775dbefdbc
|
math.parser: expose a format-float primitive for use by formatting vocabulary
|
2010-04-13 21:21:28 -07:00 |
Joe Groff
|
dd825806da
|
more help-lint
|
2010-03-09 21:02:43 -08:00 |
Joe Groff
|
896891d5af
|
spray some polymorphic stack effects on kernel, math, and sequences
|
2010-03-05 00:21:10 -08:00 |
Doug Coleman
|
06471c0a0d
|
Fix a couple of typos in complex number docs
|
2010-02-22 17:39:30 -06:00 |
Philipp Brüschweiler
|
4fbdb8eaa3
|
math: typo in rem docs
|
2010-02-19 11:23:20 +01:00 |
Slava Pestov
|
5a27fd335b
|
math.integers: remove a -rot usage
|
2010-02-10 15:44:49 +13:00 |
Joe Groff
|
2626b61df2
|
math.parser: support leading + on significand and exponent so string>number can be a proper superset of C strto* functions
|
2010-02-07 14:21:59 -08:00 |
Joe Groff
|
dc8c6bf0e2
|
math.parser: add unit tests to ensure that "1e2" parses as 100.0 in decimal and as integer 1E2 in bases >= 15 (it does now)
|
2010-02-07 13:09:59 -08:00 |