Cat Stevens
4350bcbfcd
math.matrices: rewrite, modernize and overhaul
...
math.matrices.elimination: move to extra
math.matrices.extras: expand with esoteric, less-used and unfinished code from basis
- math.matrices and .extras receive more words, tests, and docs
- matrix has become a predicate class
- 94% of matrices words have complete docs
- 77% of matrices.extras words have complete docs
- much more consistent naming for constructors etc
- added missing words / features such as main-diagonal and anti-transpose
- optimizations
- lots of documentation
2019-12-08 08:08:54 -08:00
John Benediktsson
234a5bd744
math.extras: don't shadow B (breakpoint).
2019-11-07 21:43:22 -08:00
John Benediktsson
8d8e59c43e
math.extras: adding integer-sqrt.
2019-11-07 21:32:07 -08:00
John Benediktsson
aaabe0a142
math.extras: adding a more exact sum for floats.
2019-11-06 12:03:01 -08:00
John Benediktsson
4b246b6130
math.extras: add test for stirling numbers.
2019-07-10 09:42:03 -07:00
Niklas Larsson
c3197c36c3
math.extras: Fix stirling
...
Fixes #2149
2019-07-10 09:42:03 -07:00
Doug Coleman
42d84a4e29
math.blas.matrices: Fix for equal?
2019-01-19 10:08:07 -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
Björn Lindqvist
b672ed91fb
math.affine-transforms: some docs for the vocab
2018-02-27 13:20:57 +01:00
John Benediktsson
f960c51878
Squashed commit of the following:
...
commit 429917d51c569b28d43b64f3b116e6b750e77c72
Author: Cat Stevens <catb0t@protonmail.ch>
Date: Thu Feb 15 15:54:50 2018 -0500
fix <PRIVATE> inside ARTICLE: ?!?!
commit b93243511c40ca7fd06120d089ead172df46c8b7
Author: Cat Stevens <catb0t@protonmail.ch>
Date: Wed Feb 14 18:11:26 2018 -0500
pluralize definition fix
commit e461c08166f98b974ae0e9075331dd388c1bcb48
Author: Cat Stevens <catb0t@protonmail.ch>
Date: Wed Feb 14 16:28:05 2018 -0500
update some words
commit 573ba01d6310d64788d13685dfc46099ffddb01b
Author: Cat Stevens <catb0t@protonmail.ch>
Date: Wed Feb 14 16:06:42 2018 -0500
remove a useless comment
commit 7733ade275a904449a3c691f4142329aaf73081e
Author: Cat Stevens <catb0t@protonmail.ch>
Date: Wed Feb 14 14:30:06 2018 -0500
extra/help.lint.coverage: update doctests because of new 100% coverage in basis/english
commit 9f89d2f5a261188dbd030b868323e3a0e95fb6c8
Author: Cat Stevens <catb0t@protonmail.ch>
Date: Tue Feb 13 18:51:33 2018 -0500
basis/english: new words; full help and test coverage
2018-02-15 13:21:27 -08:00
John Benediktsson
42b37dcc8a
fix some tests broken by previous commit.
2018-02-15 13:16:39 -08:00
John Benediktsson
4a144e5ea7
more test IN: cleanup.
2018-02-15 08:45:08 -08:00
John Benediktsson
bd9676e152
core/basis/extra: use none?.
2018-02-14 11:56:31 -08:00
Björn Lindqvist
88e1f091b9
extra/: more uses of the do-state combinator
2018-01-27 22:44:26 +01:00
Alexander Iljin
8a4dba4cd9
Fix the existing IN: suffixes for the test vocabs
...
Change some existing vocab name suffixes from "-tests" or ".test" to
".tests". Add no new suffixes.
2018-01-24 16:03:48 -08:00
Doug Coleman
4efff72dff
math.blas.vectors: Fix ancient typo
2017-12-28 18:53:25 -08:00
John Benediktsson
86778b349c
math.similarity: adding weighted-cosine-similarity.
2017-10-24 17:29:06 -07:00
John Benediktsson
aa5623eede
math: using ``v.`` instead of ``v* sum`` in a few places.
2017-10-24 12:26:39 -07:00
John Benediktsson
37902e3903
math.similarity: add another test for pearson-similarity.
2017-10-24 11:46:44 -07:00
John Benediktsson
ee1bfc7fc2
math.similarity: change cosine-similarity to match math formula.
...
Specifically, instead of returning values [0,1], we now return [-1,1]:
* −1 meaning exactly opposite
* 1 meaning exactly the same
* 0 indicating orthogonality (decorrelation)
* in-between values indicating intermediate similarity or dissimilarity.
2017-10-24 11:45:03 -07:00
Alexander Iljin
504c9959a1
Update some copyright headers to follow the current convention
...
Had to look through the history to find years for some headers. Added
authors to some files as well.
2017-09-11 15:43:03 -07:00
Doug Coleman
27b3c4cccf
functors: FUNCTOR: ;FUNCTOR -> <FUNCTOR: ;FUNCTOR>
...
Functors contain nested definitions, much like <PRIVATE PRIVATE> blocks.
A new parser will be able to parse nested definitions unambigiously without
knowledge of the definition of <FUNCTOR: itself, which is not the case if
it looks like FUNCTOR: instead.
2017-08-05 20:41:19 -05:00
Doug Coleman
01aab7c884
Factor: Rename <enum> to <enumerated> to not confuse with ENUM:s
2017-07-03 12:47:19 -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
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
Samuel Tardieu
30f73d63f4
Add French number>text support for ratios
2017-03-23 12:11:05 +01:00
Samuel Tardieu
5707acdaf0
Apply 1990 French orthographic reform for writing numbers
2017-03-23 11:32:52 +01:00
John Benediktsson
a2d5f8e9ad
math.cardinality: relax the comparison so tests run more successfully.
2017-01-05 09:06:33 -08:00
John Benediktsson
a3abd46500
math.cardinality: adding summary.txt.
2017-01-04 14:22:30 -08:00
John Benediktsson
5376587fb3
math.cardinality: adding some tests.
2017-01-04 14:16:58 -08:00
John Benediktsson
ef269c493c
math.factorial: reverse-factorial only undo factorial.
...
The other way doesn't make sense.
2016-11-29 19:01:36 -08:00
John Benediktsson
8bdaf26d6b
math.factorials: implement "undo" for factorials.
2016-11-29 16:56:48 -08:00
John Benediktsson
1e2e2dc9f7
math.factorials: adding reverse-factorial.
2016-11-28 19:09:03 -08:00
Björn Lindqvist
485a45a719
extra/: ensuring tests have an IN:-line ending with .tests
2016-08-20 06:01:16 +02:00
Alexander Iljin
2fd5654473
Add EOL at EOF for all authors.txt files for consistency
...
In some instances replaced CR/LF with LF.
2016-07-30 09:25:30 -07:00
John Benediktsson
46aa1f2088
math.approx: fix typo in docs.
2016-07-11 21:09:11 -07:00
Doug Coleman
35d84c6e64
maths.primes: finish renaming fast-gcd to simple-gcd.
2016-03-19 17:21:24 -07:00
Björn Lindqvist
b035e8ec13
math.hashcodes,python.syntax: bi@ and -> both?
2015-11-04 09:25:32 +01: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
66147f27b4
extra: use throw-foo for ERROR: change
2015-08-13 01:56:32 -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
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
Doug Coleman
af3605bfe6
math.extras: .. and ... are cool but not used and can come back soon.
2015-07-21 17:33:13 -07:00
Doug Coleman
35d81c742d
math.derivatives: Add a ; to the syntax for derivatives so the parsing word doesn't have to introspect its input arity.
2015-07-21 12:35:08 -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
Doug Coleman
4ec2311406
factor: Trim whitespace after ! comments and a few USING: lines that got skipped before.
2015-07-18 20:14:22 -07:00