Robby Findler
11d6664b7e
stop referring to functions that don't appear to exist
2018-03-22 18:03:31 -05:00
Paulo Matos
42017fa671
Add example showing +nan.0 is a number
2018-03-22 09:35:05 -05:00
Sam Tobin-Hochstadt
ff5f5ff2af
Fix range for random-seed
.
...
Closes #1892 .
2017-11-16 12:52:34 -05:00
Matthew Flatt
94b9b8f4dd
document integer->integer-bytes
and integer-bytes->integer
change
2017-07-28 09:51:15 -06:00
Leif Andersen
922b5f06e9
Make log also accept a base. ( #1667 )
...
Make `log` in `racket/base` optionally accept a second argument.
The second argument is the log `base`. The docs also recommend
`fllogb` when precision is important.
* Error message when base is 1
* Added docs.
* Add tests.
2017-04-15 10:40:41 -04:00
Ben Greenman
10aaff692b
[doc] link max <--> argmax
2017-03-12 22:33:02 -04:00
Robby Findler
faa385b337
small cleanup of contract
2017-03-11 13:06:22 -06:00
Benjamin Greenman
d8b78e823e
relax contract for (random min max [rand-gen]) ( #1626 )
...
Relax contract for `(random min max [rand-gen])` to accept any pair of
integers such that:
- `(< min max)`
- `(- max min)` is between 1 and 4294967087
2017-03-06 18:43:04 -05:00
Leif Andersen
eca457e886
Add history for the following functions:
...
positive-integer?
negative-integer?
nonpositive-integer?
nonnegative-integer?
natural?
2017-03-03 09:29:57 -05:00
Leif Andersen
1ebb3d5ef3
nonnegative-integer -> exact-nonnegative-integer
2017-03-02 19:24:12 -05:00
Leif Andersen
1ac2e77d00
Add natural? as an alias for nonnegative-integer?
2017-03-02 19:24:12 -05:00
Leif Andersen
edf4bcfe78
Add documentation for the predicates in the previous commit
2017-03-02 19:24:12 -05:00
Matthew Flatt
2cf6691439
expose read
capabilities of string->number
...
Extend the `string->number` parser for use by readers, which need
error messages and/or extflonum results.
2017-01-13 08:09:19 -08:00
Matthew Flatt
1381b3ca36
correct and improve docs on number printing
2016-04-25 10:07:32 -06:00
ben
7ea277e420
typo: numerator -> denominator
2016-01-30 20:40:55 -05:00
Vincent St-Amour
4b266f1ff2
sequence-sample: various comments from Eli.
2016-01-05 20:33:57 -06:00
Vincent St-Amour
707f9bffa6
random: move sequence support to random-ref
, in racket/random
.
...
And add `random-sample`.
2016-01-02 20:02:30 -06:00
Vincent St-Amour
0796350a88
Extend random
to work with ranges and sequences.
...
Requested by Matthias.
2016-01-02 20:02:30 -06:00
Matthew Flatt
4354ce45d8
use `scribble/examples' for the Reference
...
Port `examples`, `interactions`, etc., to use the new `examples`
form of `scribble/examples`. The main intended effect is to ensure
that errors are produced by examples only as specifically
indicated.
2015-12-11 12:29:41 -07:00
Vincent St-Amour
270bbccf6b
Fix history annotations to refer to 6.3.
...
Please merge to 6.3.
2015-10-12 13:49:55 -05:00
Stefan
d988055a49
added crypto-random-bytes
2015-10-05 12:00:01 -06:00
Eric Dobson
6e5c9a97ed
Make docs for sgn correct.
2015-04-10 14:25:33 -06:00
Matthew Flatt
e2261096cb
doc clarifications on eqv?
...
Part of the clarification is duplicating information about numbers
and character in the documentation of `eqv?`. Since those two type
are the only special cases of `eqv?`, the duplication seems helpful
and managable.
2015-01-24 10:12:35 -07:00
Matthew Flatt
68c5d3d1d6
fix error message for inexact->exact
on +inf.f
2015-01-24 10:12:35 -07:00
Matthew Flatt
2d4f3e2ac9
remove the "racket-pkgs" directory layer
...
The layer is now redundant, since everything left in "pkgs" is in the
"racket-pkgs" category.
2014-12-08 05:22:59 -07:00