Commit Graph

1115 Commits (36b2ac97efd94119dbf0aa8618ae6c68265a43b8)

Author SHA1 Message Date
John Benediktsson 498285d7dd unicode: make this the API for all unicode things. 2016-03-30 23:29:48 -07:00
Doug Coleman 30d158ccce prettyprint: Print .b .o .h with prefixes so it's not super confusing. Fixes #1351. 2016-03-30 22:59:29 -07:00
Doug Coleman 41209a3a42 summary.txt: Delete empty lines and empty files. 2016-03-30 22:11:51 -07:00
John Benediktsson 09cb888b48 math.floats.env: restore test cases that were disabled. 2016-03-30 10:30:36 -07:00
Björn Lindqvist ce2b971b3b mirrors: make all sequences be "inspectable", could fix #1237 2016-03-26 15:08:31 +01:00
Doug Coleman d3bc2035a2 factor: remove rest of double paren words. 2016-03-25 03:13:27 -07:00
Björn Lindqvist 579875821b VM: removes the OBJ-ERROR special object in favor of a constant
The special object contained the string "kernel-error" which were used
to tag VM errors. But it is simplier and removes a little complexity to
just tag them with a fixnum constant.
2016-03-22 17:52:19 +01:00
Doug Coleman 35d84c6e64 maths.primes: finish renaming fast-gcd to simple-gcd. 2016-03-19 17:21:24 -07:00
John Benediktsson 6b07e6caf2 math: rename fast-gcd to simple-gcd. 2016-03-19 12:20:09 -07:00
Björn Lindqvist a0dba498aa math.vectors.simd.intrinsics: the syntax for declaring simd intrinsics
isn't needed so it can be removed afaict
2016-03-11 07:11:47 +01:00
Jon Harper 43be523e31 math.statistics, add docs for cum-sum0, add cum-product1 for symmetry 2016-03-08 13:41:54 -08:00
Jon Harper cb6ddb1735 rename math.statistics:cum-map to sequences:accumulate* 2016-03-08 13:41:54 -08:00
Alexander Iljin fc7b70a17e Rename variables in some stack declarations for consistency.
It doesn't look great when a word is called "v/n", but the declared
parameters are "u" and "n". Better to have the parameters "v" and "n".
Also for consistency all input parameters are named "v" for "vector" (or
"u" and "v" in the alphabetical order), and the result vector is always
"w".
2015-11-04 07:47:57 -08: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
Doug Coleman 330c7ba156 factor: Removing SLOT: nth/at/global in favor of using change: at for tuple slots named ``at`` and change-at for hashtables.
Redo many FROM: and QUALIFIED: and using lists.
2015-08-12 08:49:02 -05:00
Doug Coleman 43fb73fae6 factor: Rename I[ ]I to [I I]. Fix places where we do "string"token without whitespace. 2015-08-06 17:05:12 -05:00
John Benediktsson c6fad4aa61 math.ratios: moving to core. 2015-07-30 10:31:00 -07:00
John Benediktsson fba2eb9ace fix another doc using. 2015-07-28 20:21:12 -07:00
John Benediktsson 4ded3c491c fix some help-lint errors. 2015-07-28 20:06:59 -07:00
John Benediktsson 9b77a785e9 math.floats.env: don't need << >>. 2015-07-28 19:23:43 -07:00
Björn Lindqvist 8a731681bf compiler.cfg.*: tests against #1308 2015-07-28 17:58:29 -07:00
Björn Lindqvist 5e29aac0a6 Docs: various more compiler-related docs 2015-07-28 17:58:28 -07:00
Doug Coleman 0babf4558f math.statistics: fix docs 2015-07-27 12:41:02 -07:00
Doug Coleman 270155bae4 math.statistics: clean up some weird stack effects 2015-07-27 09:54:07 -07:00
Doug Coleman f3c85e0598 math.vectors.conversion: [foo] for words that make quots is ok, but [[foo]] is overboard. change to ([foo]) 2015-07-26 12:24:23 -07:00
Doug Coleman 1fcf96cada factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon. 2015-07-25 22:59:56 -07:00
John Benediktsson 5eec781b40 use ``if*`` instead of ``dup [ ] [ drop ] if``. 2015-07-20 22:24:30 -07:00
John Benediktsson 89e3cc511e math: moving >fraction to math. 2015-07-19 16:57:45 -07:00
Doug Coleman 0176591527 factor: actual patch to remove ; from all c/fortran functions 2015-07-19 16:25:30 -07:00
Doug Coleman 2c257f399c factor: Rename MACRO: and MACRO: to have quot as the output in stack effects. 2015-07-18 22:16:11 -07:00
John Benediktsson 6e9dfc86c3 math.primes: commas look better. 2015-07-14 17:35:52 -07:00
John Benediktsson c89cdc4c67 math.matrices.elimination: avoid double length call. 2015-07-14 15:59:24 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 9bbba4dca8 math.floats.env: Make sure answers are array. So much metapgramming in these unit tests. 2015-07-02 16:05:42 -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
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman e3cb325040 factor: clean up whitespace in -docs files 2015-07-02 10:31:22 -07:00
Doug Coleman edb61c9b24 math.combinatorics: private docs again. oops 2015-06-30 10:25:21 -07:00
Doug Coleman 380790f624 math.complex: Fix PRIVATE>
There's an IN: in the middle of a PRIVATE> and that breaks things.
2015-06-30 08:58:12 -07:00
Doug Coleman 69ee8b9190 core, basis: Don't use the IN: foo.private feature and undocument it.
It only works well when you are loading code dynamically.
2015-06-30 08:51:07 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson fda90b2beb math.primes.erato: add some comments at the top. 2015-06-17 10:19:00 -07:00
John Benediktsson 8b6c743e02 math.primes.erato.fast: use literals to show how the wheel is calculated. 2015-06-16 18:44:08 -07:00
John Benediktsson 64db5c5bb4 math.primes.erato: faster compressed sieve by two improvements:
1) fixnum math in unmark-multiples
2) 3 upper sqrt 2 <range> in sieve
2015-06-16 08:26:48 -07:00
John Benediktsson 7e23c12c0f math.primes.erato.fast: some bignum fixes and more tests. 2015-06-16 08:20:32 -07:00
John Benediktsson e3ec051527 math.primes: fix "11 >bignum prime?". 2015-06-15 23:02:39 -07:00
John Benediktsson db42e12853 math.primes.erato.fast: adding fast Sieve of Eratosthenes. 2015-06-15 19:51:02 -07:00
John Benediktsson dfa763434e Fix tests broken by word hashcode change. 2015-06-09 20:37:55 -07:00
Doug Coleman 6e60c811ac core: Rename create to create-word, create-in to create-word-in. 2015-06-08 12:47:35 -07:00
John Benediktsson 14ed9a5455 math.functions: some silly cleanup. 2015-06-02 11:54:05 -07:00
John Benediktsson 0eea157d90 math.bitwise: bitfield should just use map-reduce. 2015-05-31 08:04:34 -07:00
John Benediktsson f24bbffb2a math.bitwise: change bitfield to reduce from first argument rather than zero. 2015-05-30 21:55:27 -07:00
John Benediktsson 0f1f27dcee math.bitwise: fix docs for bitfield. 2015-05-30 21:51:08 -07:00
John Benediktsson 40b699cc1e math.primes: little bit more cleanup. 2015-05-13 15:17:15 -07:00
John Benediktsson ab50fc818f math.primes: use fast-gcd in coprime? and replicate instead of make. 2015-05-13 14:47:31 -07:00
John Benediktsson 296968580a use assoc-reject instead of [ ... not ] assoc-filter. 2015-05-12 19:08:42 -07:00
John Benediktsson b366a06c41 use reject instead of [ ... not ] filter. 2015-05-12 18:50:34 -07:00
John Benediktsson ac23acc2c9 Fix some minor errors in help-lint. 2015-01-30 17:04:40 -08:00
Benjamin Pollack 5e01164a72 Add more documentation for math.statistics 2015-01-30 17:04:40 -08:00
John Benediktsson 1aa27963d2 math.primes.miller-rabin: actually, this is better. 2014-12-04 19:48:32 -08:00
John Benediktsson 95e45d865d math.functions: minor cleanup to (gcd). 2014-12-04 19:46:42 -08:00
John Benediktsson 9d4336d774 math.primes.miller-rabin: minor cleanup; 2014-12-04 19:46:30 -08:00
John Benediktsson 34160212d1 math.primes.erato: fix reference to "arr". 2014-12-04 11:52:56 -08:00
John Benediktsson d5b8f3d3b9 math.primes.erato: fix help-lint. 2014-12-04 11:48:12 -08:00
John Benediktsson 348bd85824 math.ranges: cleanup using. 2014-12-04 10:23:59 -08:00
John Benediktsson ad71f79be3 math.primes: speedup sieve. 2014-12-04 10:11:32 -08:00
John Benediktsson 76761b2e59 more minor cleanup. 2014-11-30 19:26:23 -08:00
John Benediktsson 818f337b02 cleanup "over push" is "suffix!". 2014-11-30 08:38:59 -08:00
Björn Lindqvist 001acde590 math.vectors: new word v>integer = [ >integer ] map 2014-11-17 19:02:12 -08:00
Doug Coleman 7d95fb8172 math.vectors.simd: Attempt to print out full simd failures so we can debug them. 2014-11-17 12:12:39 -08:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
Doug Coleman e4e6f34f0e math.statistics: Get smart about the geometric mean. Calculate it in logspace so we can use addition of small logarithms and multiplication instead of the nth root of a giant product. 2014-09-26 13:34:25 -07:00
Björn Lindqvist 60ffe0680e kernel: new combinator 2with = with with 2014-07-22 07:40:13 -07:00
John Benediktsson 8a2028d2c6 math.statistics: use if-zero in mean-ddof. 2014-06-10 13:06:42 -07:00
Doug Coleman 018d12b29b math.bits: Clean up the docs some more. 2014-06-06 14:45:46 -07:00
Doug Coleman 6b9c7c6772 math.bits: Clarify docs. Don't support negative numbers for make-bits. Fixes #893. 2014-06-06 14:25:21 -07:00
John Benediktsson 96884eab2a math.ratios: faster abs and neg? on ratios. 2014-06-05 10:53:02 -07:00
John Benediktsson 05c35ebda3 kernel: change errors to be in kernel.private. 2014-06-04 14:33:02 -07:00
Björn Lindqvist 6627a3327b kernel: symbolic constants for the various kernel errors 2014-06-04 23:16:40 +02:00
John Benediktsson cea47b896d more doc types. 2014-05-26 07:51:19 -07:00
John Benediktsson 57f9d78892 improve help by linking to types directly. 2014-05-23 20:20:15 -07:00
John Benediktsson 98935b7f15 docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``. 2014-05-18 20:09:10 -07:00
John Benediktsson 594354e145 math.bitwise: simplify byte-array-bit-count. 2014-04-29 22:11:42 -07:00
Björn Lindqvist b72fa3ba0a Docs: fixed doc example errors triggered by help-lint and added with-disposal where applicable 2014-04-14 08:42:10 -07:00
Björn Lindqvist a48567b8af Docs: more matrix-related documentation 2014-04-14 08:42:09 -07:00
Björn Lindqvist 8b4af6bc86 Docs: doc and examples for math.matrices 2014-04-14 08:42:09 -07:00
John Benediktsson ebbfa17b47 math.bitwise: fix docs for mask and unmask (they don't return a boolean). 2014-02-09 15:36:49 -08:00
John Benediktsson 54cca48aca use swapd in a few places. 2014-01-05 20:30:38 -08:00
John Benediktsson abd069c1ad math.matrices: add error for negative m^n (and test). 2014-01-05 20:08:55 -08:00
John Benediktsson 97b0ad7499 math.polynomials: add test for negative p^. 2014-01-05 20:08:46 -08:00
John Benediktsson 0cbf869261 math.bits: fix docs for make-bits to be more clear. 2013-12-12 18:30:49 -08: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 069d09807e math.bitwise: removing bit-clear? since it is just "bit? not". 2013-11-24 12:05:52 -08:00
John Benediktsson 17941b8ad7 math.bitwise: speed up >signed. 2013-11-24 12:01:08 -08:00
John Benediktsson 5486473b52 math.bitwise: adding bit-length. 2013-10-20 18:55:58 -07:00
John Benediktsson e9c6bf6b9a math.combinatorics: faster combinations by inlining next-combination. 2013-10-14 15:44:19 -07:00
John Benediktsson a5f59da7e1 math.bitwise: fix mask? to do what the docs say. 2013-10-13 20:20:05 -07:00
John Benediktsson d76f8d151d math.combinatorics: adding all-combinations? and all-permutations?. 2013-10-01 20:44:57 -07: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 aa779eaba8 math.statistics: use >array instead of { } clone-like. 2013-06-25 15:40:33 -07:00
Doug Coleman 4df945e3db math.statistics: Handle some edge cases.
Remove two unused parameters.
2013-06-17 10:16:28 -07:00
Doug Coleman 49c0b12b33 math.statistics: Add trimean. 2013-06-17 10:16:28 -07:00
Doug Coleman d3df35102a math.statistics: [-] Golfed. 2013-06-17 07:36:55 -07:00
Doug Coleman 77abc31e3b math.statistics: Fix out of bounds on quantiles that should return the first element. 2013-06-17 07:21:45 -07:00
John Benediktsson 6c6664b0b8 math.combinatorics: specialized version of nths-unsafe for performance. 2013-06-14 11:27:45 -07:00
John Benediktsson 917ae3e410 math.combinatorics: use cond in k-permutations. 2013-05-15 15:09:25 -07:00
John Benediktsson c1e91316d2 math.combinatorics: adding a k-permutations virtual sequence. 2013-05-15 15:05:38 -07:00
John Benediktsson 5ee7f10f19 math.matrices: simpler square-rows. 2013-05-14 13:52:24 -07:00
John Benediktsson bcbf3198f7 math.matrices: faster square-rows and square-cols. 2013-05-14 13:46:44 -07:00
John Benediktsson fe45a08054 math.ranges: implement sum on ranges. 2013-05-06 16:01:29 -07:00
John Benediktsson 720db54f61 math.statistics: change kth-object to properly clone underlying sequence first. 2013-05-06 10:40:53 -07:00
John Benediktsson 6a4638fa0f math.statistics: faster cum-mean. 2013-05-06 09:12:40 -07:00
John Benediktsson 0d806e0b69 Revert "math.statistics: change cum-mean to use v/."
This reverts commit 9df2235d8983da67d106a6d5fb297134e5e2a58e.
2013-05-06 09:08:11 -07:00
John Benediktsson b01b14c0e2 math.statistics: change cum-mean to use v/. 2013-05-06 08:59:02 -07:00
lorynj ca7dd6a6a3 cum-mean
Added a word to calculate cumulative mean.

Signed-off-by: lorynj <lorynj@gmail.com>
2013-05-06 08:15:39 -07:00
John Benediktsson c1ab4aab59 math.combinatorics: faster by using hints for the array common case. 2013-05-01 11:18:17 -07:00
John Benediktsson 57b7a5fd6f math.matrices: add tests for square-matrix?. 2013-04-25 14:48:16 -07:00
John Benediktsson 55b2fb0802 math.functions: implement ldexp. 2013-04-24 11:19:24 -07:00
John Benediktsson 35e23dc547 math.statistics: make collect-by row polymorphic, simplify words. 2013-04-22 06:25:50 -07:00
John Benediktsson 3ca65a2b47 math.combinatorics: fix map>assoc-combinations (shouldn't have been locals). 2013-04-18 09:04:47 -07:00
John Benediktsson 02d652e6c0 math.combinatorics: minor fix to reduce-combinations stack effect. 2013-04-18 07:17:36 -07:00
John Benediktsson 77b3d509be math.combinatorics: cleanup stack effects to be more descriptive. 2013-04-18 07:15:47 -07:00
John Benediktsson 81f733493d math.combinatorics: much faster permutations, cleanup combinations code. 2013-04-18 07:04:17 -07:00
John Benediktsson 433adf8dd2 math.combinatorics: big speedup to combinations. 2013-04-17 20:57:48 -07:00
John Benediktsson 3862c4f9b5 math.combinatorics: remove duplicate nths-unsafe. 2013-04-06 14:29:47 -07:00
John Benediktsson decd9ed1ee math.combinatorics: make permutations-quot to reduce code duplication. 2013-04-06 13:12:57 -07:00
John Benediktsson b646d1e1b8 math.combinatorics: produce type of sequence in selections. 2013-04-06 13:06:23 -07:00
John Benediktsson 64111e1342 math.combinatorics: use nth-unsafe more. 2013-04-06 12:43:02 -07:00
John Benediktsson d15dbaebb4 math.combinatorics: faster nCk (use integer division). 2013-04-06 11:43:20 -07:00
John Benediktsson a52ee59005 math.combinatorics: faster permutation (using slices). 2013-04-05 07:28:22 -07:00
John Benediktsson 360c2ee5a7 math.functions: remove round-to. 2013-04-01 17:02:44 -07:00
John Benediktsson e5f9696aae math.ratios: adding some tests for M\ ratio /mod. 2013-03-29 08:32:35 -07:00
John Benediktsson 71d37429ba math.functions: faster >rect by specializing for complex. 2013-03-28 18:02:55 -07:00
John Benediktsson b38f42f73c math.ratios: faster M\ ratio mod. 2013-03-28 15:00:21 -07:00
John Benediktsson 7c62a94ce6 math.ratios: faster M\ ratio /mod. 2013-03-28 14:56:47 -07:00
John Benediktsson 02d9565732 math.statistics: adding demean and demedian, cleanup a bit. 2013-03-28 11:40:46 -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
Doug Coleman 5224fba820 math: Revert clone on median algorithm, perhaps need to revisit this. Call clump for moving-median 2013-03-24 01:14:35 -07:00
Doug Coleman bfbe6edde6 math.statistics: Median now changes the order of the sequence, so clone it first. 2013-03-24 01:08:28 -07:00
Doug Coleman 8c19602ae9 assocs: Add of and ?of. Change all the things at once! Fixes #701. 2013-03-23 14:59:07 -07:00
John Benediktsson 684c2793e7 math: some style cleanup. 2013-03-21 08:54:14 -07:00
Doug Coleman 07e223564f math.ranges: Stopgap fix for math.ranges unit tests. See issues #803, #800, #508. 2013-03-20 15:54:57 -07:00
Doug Coleman eb136e0f21 math.ranges: Add a bunch more tests for empty ranges. 2013-03-20 13:52:03 -07:00
Doug Coleman 6697f3effb math.statistics: Fix histogram and collect. Histogram used each-index even when it didn't need to. 2013-03-10 12:57:48 -07:00