John Benediktsson
da64b05e6d
math.functions: adding e^-1.
...
This is for calculating e^x-1 for small values more accurately. You can also
call expm1(x) function if you want, and it's available on your platform.
FUNCTION: double expm1 ( double x )
2019-11-05 10:19:32 -08:00
Doug Coleman
3f0ff53369
math.functions: add logit function and a test.
...
sigmoid is known as expit in scipy
2019-02-24 11:15:58 -06:00
Doug Coleman
9f213f96f6
core: Add the shuffler words but without primitives.
...
The nipd branch slowed bootstrap by a minute, this patch does not.
sorry about changing the fjsc line endings...
2018-06-19 22:52:58 -05:00
Cat Stevens
358eb29357
math.functions docs: add logn to "powers and logarithms" article
...
logn function was omitted from the subsections in "powers and logarithms"
2018-06-03 13:42:18 -07:00
John Benediktsson
9b2eac2942
math.functions: one line logn
2018-03-22 15:19:14 -07:00
Cat Stevens
4c96c9343c
basis/math: add logn to math.functions ( fix #1981 )
2018-03-22 15:11:45 -07:00
John Benediktsson
b40ba26bac
basis/extra: removing '[ @ ] in favor of _ for fried quotations.
2018-01-19 23:40:23 -08:00
Doug Coleman
9dbfc9351c
math.functions: nan: -> NAN: oops
2017-12-28 00:43:51 -08:00
Doug Coleman
099549940a
math.functions: disable a test.
2017-12-27 22:28:20 -08:00
Doug Coleman
0ac181c797
tools.test: Fix unit-test~ and a couple of tests.
2017-07-23 11:50:52 -05:00
Doug Coleman
62129ffea4
basis: Add unit-test~ and unit-test-v~ for testing floats.
...
Use unit-test~ in math.functions in some places to make sure we like it.
2017-07-22 18:47:59 -05:00
John Benediktsson
c503659a93
math.functions: fix another test impacted by float truncate change.
2017-06-10 13:33:01 -07:00
John Benediktsson
57de1f5ab0
math.functions: make -0.3 truncate return 0.0 instead of -0.0.
2017-06-08 11:27:48 -07:00
Jon Harper
80e9d7c115
move math.extras:round-to-even to math.functions to use in basis:formatting
...
Also add round-to-odd in case it is needed.
Also change float rounding to be independent of the current rounding mode
2017-06-08 11:23:37 -07:00
Jon Harper
bf852cea6a
add basis.math.functions.integer-logs: exact integer logarithms
2017-06-08 11:22:40 -07:00
Jon Harper
34f36a529e
math.functions, speed up truncate for floats
2017-06-08 11:22:40 -07:00
Jon Harper
c74cfe6c54
math.functions: fix truncate and round to output -0.0 for negative floats near 0
2017-06-08 11:22:40 -07:00
Jon Harper
271c7d9519
math.functions, fix round for ratios between -1/2 and -1
...
it was outputting 1 instead of -1
2017-06-08 11:22:40 -07:00
Alexander Iljin
2ffa446f5b
*-docs: replace double spaces with single spaces
...
Code examples and other places where multiple spaces were used to align
text were left intact.
2017-06-05 13:16:07 -07:00
Doug Coleman
e189954ecc
core: Rename iota to <iota> so we can have TUPLE: iota ... ; instead of TUPLE: iota-tuple ... ;
2017-06-02 11:57:05 -05:00
Doug Coleman
7c7bb93c55
factor: Rename GENERIC# to GENERIC#:.
...
Fixes #1670 .
2017-06-01 13:58:58 -05:00
Alexander Iljin
a6caeb6e80
math.functions-docs: update description of e^
2017-04-07 19:01:33 +03:00
Alexander Iljin
c6208e4677
math.functions[-docs]: rename the output parameters of the power functions
2017-04-07 19:01:24 +03:00
Alexander Iljin
79964e4487
math.functions-docs: fix wording for abs and absq
...
Those functions are not specific to complex numbers.
2016-07-30 09:25:30 -07:00
John Benediktsson
6b07e6caf2
math: rename fast-gcd to simple-gcd.
2016-03-19 12:20:09 -07:00
John Benediktsson
e477f6996f
Fix comments to be ! not #!.
2015-09-08 16:15:10 -07:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
b6be8685c3
basis: ERROR: changes.
2015-08-13 03:20:39 -07:00
John Benediktsson
c6fad4aa61
math.ratios: moving to core.
2015-07-30 10:31:00 -07:00
John Benediktsson
89e3cc511e
math: moving >fraction to math.
2015-07-19 16:57:45 -07:00
Doug Coleman
892c62e1dc
factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test
2015-07-03 09:39:59 -07:00
Doug Coleman
59f3b1ea57
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
...
Needs a bit more work.
This reverts commit 7e54cc2824
.
2015-07-02 13:47:06 -07:00
Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
John Benediktsson
14ed9a5455
math.functions: some silly cleanup.
2015-06-02 11:54:05 -07:00
John Benediktsson
95e45d865d
math.functions: minor cleanup to (gcd).
2014-12-04 19:46:42 -08:00
Björn Lindqvist
60ffe0680e
kernel: new combinator 2with = with with
2014-07-22 07:40:13 -07:00
John Benediktsson
57f9d78892
improve help by linking to types directly.
2014-05-23 20:20:15 -07:00
John Benediktsson
1cfcf39bda
Revert "math.functions: make float sqrt a little faster."
...
This reverts commit 7ae5e9c0c11bbc82ac7854bfa5964723e1cb42d9.
2013-11-25 16:42:52 -08:00
John Benediktsson
fafeecb5fb
math.functions: make float sqrt a little faster.
2013-11-25 11:14:51 -08:00
John Benediktsson
519652d862
math.functions: whoops, back out mistaken commit.
2013-07-24 14:55:13 -07:00
John Benediktsson
c75fc48f23
switch some vocabs to 4 spaces.
2013-07-24 14:52:09 -07:00
John Benediktsson
55b2fb0802
math.functions: implement ldexp.
2013-04-24 11:19:24 -07:00
John Benediktsson
360c2ee5a7
math.functions: remove round-to.
2013-04-01 17:02:44 -07:00
John Benediktsson
71d37429ba
math.functions: faster >rect by specializing for complex.
2013-03-28 18:02:55 -07:00
John Benediktsson
814cdaf26d
math.functions: clarify rounding behavior.
2013-03-26 14:35:38 -07:00
John Benediktsson
4c941e8996
math.functions: speed up round (thanks Loryn Jenkins!)
2013-03-26 14:22:21 -07:00
John Benediktsson
422ccf9901
math.functions: adding "round-to".
2013-01-30 09:41:21 -08:00
John Benediktsson
e84e508256
math.ratios: speed up some operations on ratios.
2012-09-10 19:53:25 -07:00
John Benediktsson
3836d57321
math.functions: faster (integer) m^n.
2012-08-31 15:10:48 -07:00
John Benediktsson
ea25cde2af
math.functions: make it clear that 0 = is the more correct zero?.
2012-08-13 08:03:54 -07:00