Commit Graph

579 Commits (134a9fbcb4415fc46dc176be4f6099fc05cdf99e)

Author SHA1 Message Date
Slava Pestov eaad0c7660 Updating code to use CONSTANT: instead of : foo 123 ; inline 2009-02-23 21:40:17 -06:00
Doug Coleman e026b554a9 use CONSTANT: in extra 2009-02-22 19:08:45 -06:00
Jason Merrill d59415d23b Fixed help for math.dual. Help is now autogenerated where possible. 2009-02-19 22:21:31 -05:00
Jason Merrill 90b6b38fd1 Changed math.dual to define words as dword instead of overloading generic words on dual numbers. 2009-02-19 18:49:13 -05:00
Jason Merrill 8968093623 Added dual versions of a few more words to math.dual. 2009-02-18 21:28:48 -05:00
Jason Merrill fe55e939f9 Added math.dual and math.derivatives for computing with dual numbers. Also
made a few more methods in math.functions generic in order to specialize them
on dual numbers.
2009-02-12 23:13:16 -05:00
Joe Groff 4f25c756ec Merge branch 'master' of git://factorcode.org/git/factor 2009-01-30 10:15:51 -06:00
Joe Groff b06ff3750d Metadata for svg, sequences.squish, math.affine-transforms 2009-01-30 10:15:26 -06:00
Joe Groff aad17e43ef math.affine-transforms, sequences.squish, and svg vocabs 2009-01-30 09:39:15 -06:00
Doug Coleman 3c408342ef renaming: contain? -> any?, deep-contains? -> deep-any?, pad-left -> pad-head, pad-right -> pad-tail, trim-left -> trim-head, trim-right -> trim-tail 2009-01-29 22:19:07 -06:00
Samuel Tardieu 6ed520ffa4 Implement math.text.french 2009-01-23 15:22:26 +01:00
Samuel Tardieu fc384c433b Put 3digit-groups into its own vocabulary 2009-01-23 15:22:03 +01:00
Samuel Tardieu 6a2f46ed7f Move math.primes.factors from extra to basis 2009-01-07 23:01:27 +01:00
Samuel Tardieu 397790241f math.primes.factors rewrite 2009-01-07 22:54:03 +01:00
Samuel Tardieu 594bd3aee8 Move math.primes from extra to basis 2009-01-07 21:12:48 +01:00
Samuel Tardieu ca7ffd6ea2 Separate lazy lists from core primes number generation 2009-01-07 21:10:34 +01:00
Samuel Tardieu c8be645eb1 Remove "primes-under-million" list
In the past, this was a static list used to optimize prime factors
computation. Now that the dependency has been reversed, there is
no point in keeping this list which can be obtained by
"1000000 primes-upto" as easily.
2009-01-07 10:40:00 +01:00
Samuel Tardieu 5d988b04fa Add missing files in math.primes.erato and add copyright notice 2009-01-07 10:39:55 +01:00
Samuel Tardieu 78fbeda105 Refactor prime factors decomposition module and add more tests 2009-01-07 10:39:20 +01:00
Samuel Tardieu f521805bb3 Memoize small primes list
This makes "benchmark.binary-search" work again in a reasonable time.
2008-12-29 13:55:47 +01:00
Samuel Tardieu ca0f3659e4 Optimize primes-between
Rather than having primes-between return a slice of primes-upto,
make primes-upto use primes-between.

Also, those two words cannot be marked as foldable as their
output is mutable.
2008-12-28 11:43:13 +01:00
Samuel Tardieu a843113326 Optimize erato sieve
We started crossing the numbers at 3*n, while we can start at n^2.
2008-12-28 11:43:13 +01:00
Samuel Tardieu 5a9eab2c48 Remove unused and redundant math.erato
The math.erato module brings nothing more is brought by lprimes
from math.primes. Remove it, as it has no user, and a better version
is available in math.primes.erato anyway.
2008-12-26 21:03:12 +01:00
Samuel Tardieu 99023a3322 Use regular primality test to build primes list 2008-12-26 21:03:12 +01:00
Samuel Tardieu f86b5baf8d Use math.primes.erato instead of a list of first prime numbers 2008-12-26 21:03:12 +01:00
Samuel Tardieu 93b20967b5 Add Eratosthene sieve as math.primes.erato 2008-12-26 20:58:46 +01:00
Samuel Tardieu 4f42d00769 Use existing recursion tools rather than explicit one 2008-12-26 20:58:46 +01:00
Samuel Tardieu 7303316a04 Do not remove first primes only to prepend them afterwards
This makes little sense to use "lprimes-from" to get the
primes above one million to prepend the list of primes
before one million afterwards.
2008-12-26 20:58:45 +01:00
Slava Pestov 8a66947527 Eliminating usages of combinators/sequences/etc.lib 2008-12-18 00:16:43 -06:00
Slava Pestov 6fb57d821f Move math.blas to basis 2008-12-17 23:23:43 -06:00
Slava Pestov d108d58058 Move math.miller-rabin to basis 2008-12-17 19:53:19 -06:00
Slava Pestov 411ba7473b Clean up some code to not use combinators.lib and sequences.lib 2008-12-17 19:52:47 -06:00
Slava Pestov c5160d76e9 Merge qualified, alias, symbols, constants into core 2008-12-17 18:10:01 -06:00
Slava Pestov fea0c80542 Merge branch 'master' of git://projects.elasticdog.com/git/factor 2008-12-15 22:55:59 -06:00
Aaron Schaefer c9e10e7b4a Update math.english with faster algorithm and new combinators 2008-12-15 21:49:31 -05:00
Slava Pestov 09c60f7e90 Fix some vocabularies for new requirement that inline words have a stack effect declaration 2008-12-15 20:31:55 -06:00
John Benediktsson eb86d88dd4 Fix typo in math.binpack-docs. 2008-12-09 16:40:32 -08:00
John Benediktsson b6263289c2 Merge branch 'master' of git://factorcode.org/git/factor 2008-12-07 14:46:53 -08:00
Doug Coleman 9ec5896a3a Move two unit tests 2008-12-07 08:39:16 -06:00
Doug Coleman 3075eeb4ab fix math docs, refactor a bit 2008-12-06 23:12:38 -06:00
Doug Coleman e4efe6ec24 add finance words to math.finance 2008-12-06 23:05:02 -06:00
John Benediktsson 5e136b470c Merge branch 'master' of git://factorcode.org/git/factor 2008-12-05 13:25:03 -08:00
Joe Groff c73fd625ed remove "generalizations" use from math.blas.vectors 2008-12-04 16:15:42 -08:00
Joe Groff ec76a0bfff Renovate BLAS matrices 2008-12-04 16:08:01 -08:00
Joe Groff bd59b86ad6 Fix complex blas vectors 2008-12-04 14:03:13 -08:00
Joe Groff ef0bc65039 Merge branch 'master' of git://factorcode.org/git/factor 2008-12-04 13:41:30 -08:00
Joe Groff f990647d67 Renovate math.blas.vectors to build off of functors and specialized-arrays. Add complex and complex-components sequence wrappers. Fix small bug in functors 2008-12-04 13:40:55 -08:00
John Benediktsson 832ebcf26f Merge branch 'master' of git://factorcode.org/git/factor 2008-12-04 00:45:19 -08:00
Aaron Schaefer 1296e3c792 Move math.blas back to extra due to multimethods usage 2008-12-04 01:35:53 -05:00
Aaron Schaefer 13781ee48c Merge branch 'master' of git://factorcode.org/git/factor 2008-12-04 00:42:34 -05:00
Doug Coleman 9f19062892 remove redundant nan? word 2008-12-03 22:03:10 -06:00
Doug Coleman b11caac25f add infinity? and nan? to math.floating-point 2008-12-03 19:15:58 -06:00
Doug Coleman 3ab0d03a19 extra: swap 3append -> glue, remove some >r r> 2008-12-03 19:11:55 -06:00
John Benediktsson b201020926 Merge branch 'master' of git://factorcode.org/git/factor 2008-12-03 02:20:22 -08:00
Slava Pestov e0af88bd97 Move a bunch of vocabularies to unmaintained, hopefully temporarily 2008-12-03 00:05:20 -06:00
Slava Pestov 350e697615 Merge branch 'master' into specialized-arrays 2008-12-02 20:07:14 -06:00
John Benediktsson 7e377e99b5 Merge branch 'master' of git://factorcode.org/git/factor 2008-12-02 15:46:40 -08:00
sheeple 46b3311630 Set libblas library name on FreeBSD. 2008-12-02 17:17:24 -06:00
John Benediktsson d9efc63103 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-29 12:02:31 -08:00
Aaron Schaefer be7bae07d3 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-29 10:46:32 -05:00
Slava Pestov e8a69a3aea Fix conflict 2008-11-29 05:14:49 -06:00
Doug Coleman b9432c3d01 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-29 00:48:09 -06:00
sheeple 26c002d23f Fix fixnum* problem; result was shifted to the right by 3 bits if both input registers were equal 2008-11-29 00:44:46 -06:00
Doug Coleman 3e59cca630 use math.bitwise here, add a couple tests 2008-11-29 00:44:39 -06:00
John Benediktsson 8644816f2a Merge branch 'master' of git://factorcode.org/git/factor 2008-11-20 11:18:02 -08:00
Slava Pestov 281657dd82 Fix conflict 2008-11-18 22:18:14 -06:00
Doug Coleman cba8f2a860 swap . . -> [ . ] bi@ 2008-11-18 14:09:50 -06:00
Doug Coleman 054dce145c fix polynomial help lint 2008-11-18 14:00:27 -06:00
Aaron Schaefer 197bb70893 Move math.statistics to extra 2008-11-18 10:31:07 -05:00
Aaron Schaefer 47d268d894 Remove documentation duplication in math.statistics 2008-11-18 10:30:11 -05:00
Aaron Schaefer c3f05eaaa1 Move math.quaternions to extra 2008-11-18 10:22:48 -05:00
Aaron Schaefer 1ffc6051cd Move math.blas to basis 2008-11-18 10:22:16 -05:00
Aaron Schaefer 5869a1aab4 Move math.combinatorics to basis 2008-11-18 10:20:44 -05:00
Aaron Schaefer f59071189c Moved math.polynomials to extra 2008-11-18 10:19:29 -05:00
Aaron Schaefer fd95e64125 Cleanup polynomials and add documentation 2008-11-18 10:13:57 -05:00
Aaron Schaefer e17f519480 Minor documentation fixes 2008-11-17 22:51:57 -05:00
Aaron Schaefer a7551efd02 Add documentation for math.quaternions 2008-11-17 21:12:10 -05:00
Aaron Schaefer 6161d99637 Replace nested >r r> with spread in math.statistics 2008-11-17 18:48:19 -05:00
Slava Pestov 2fe364a7bb Specialized arrays work in progress 2008-11-14 20:18:16 -06:00
John Benediktsson 55c67b4851 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-14 14:10:04 -08:00
Doug Coleman aff4c9bda3 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-11 13:07:26 -06:00
Doug Coleman 4caf275b1f clean up math.floating-point 2008-11-11 13:05:48 -06:00
Slava Pestov 4c0f2cc3f5 Move factor-2s from miller-rabin to math.functions; use it to make ^ more efficient 2008-11-11 11:30:47 -06:00
Aaron Schaefer e813e1df18 Add unit tests for math.derivatives 2008-11-09 21:42:59 -05:00
Aaron Schaefer 930458ebd7 Move fft/haar transforms to their own subdirectory 2008-11-09 21:42:01 -05:00
Aaron Schaefer 46692390d4 Cleanup math.compare docs and tests 2008-11-09 21:00:36 -05:00
Aaron Schaefer 9a3c10d212 Add documentation for math.analysis 2008-11-09 19:22:04 -05:00
Aaron Schaefer e5c155338f Fix short-circuit usage in number>text 2008-11-09 17:23:24 -05:00
Aaron Schaefer f20ab6f4e8 Refactor of math.statistics 2008-11-09 17:16:30 -05:00
Aaron Schaefer 326ce8c71b Update >r r> to dip in math.quaternions 2008-11-08 16:47:58 -05:00
Aaron Schaefer 774cb858d5 Small updates to math.primes 2008-11-08 16:34:39 -05:00
Aaron Schaefer 798139f2e7 Minor polynomials cleanup, could use refactoring 2008-11-08 16:03:52 -05:00
Aaron Schaefer 23ec6ef122 Minor stack shuffling changes 2008-11-08 15:30:28 -05:00
John Benediktsson 2957d1cd01 Merge branch 'master' of git://factorcode.org/git/factor 2008-11-06 22:36:05 -08:00
Aaron Schaefer 380cd2d3b0 Clean up of math.finance 2008-11-07 01:36:02 -05:00
Aaron Schaefer 2fafae5013 Refactor and clean up of math.fft 2008-11-07 01:35:17 -05:00
Aaron Schaefer 67ce49dc59 Update syntax for extra/math vocabs 2008-11-07 01:24:32 -05:00
Aaron Schaefer 8ec695332a Add reverse haar wavelet transform and tests 2008-11-06 23:21:19 -05:00
Slava Pestov 666100a07b Tweak euler043 to run in constant space, add new each-permutation and reduce-permutations combinators to math.combinatorics 2008-11-06 11:07:19 -06:00
Aaron Schaefer 636c344eb0 Cleanup of math.analysis 2008-11-06 01:20:08 -05:00
Aaron Schaefer 15257b91ac Refactor math.text.english using new combinators 2008-11-05 22:59:06 -05:00
John Benediktsson 8ef0a51def Merge branch 'master' of git://factorcode.org/git/factor 2008-10-31 00:33:37 -07:00
Doug Coleman cfd1978aaa checkin so i can work with this elsewhere 2008-10-21 21:51:54 -05:00
John Benediktsson 229598e018 Merge branch 'master' of git://factorcode.org/git/factor 2008-10-03 07:13:26 -07:00
Doug Coleman 56a0af9628 initial math cleanup 2008-10-03 02:19:03 -05:00
John Benediktsson 1c76a6865a math-binpack: Some cleanups recommended on IRC. 2008-10-01 23:44:45 -07:00
John Benediktsson bce227c8f3 math-binpack: Fix incorrect array size, and update tests. 2008-10-01 20:05:08 -07:00
John Benediktsson b0ad7dfebc Adding bin-packing routines in extra/math/binpack. 2008-10-01 19:58:53 -07:00
John Benediktsson 0c030d70ea Moving enumerate to sequences-lib. 2008-09-25 21:25:27 -07:00
John Benediktsson 5bb148fd10 Removing distribute word from math-finance. 2008-09-25 13:15:39 -07:00
John Benediktsson fe95fb813e Adding distribute word to math-finance. 2008-09-24 12:24:01 -07:00
John Benediktsson 934833287d Simplified math-compare by using bi@. 2008-09-23 21:24:04 -07:00
John Benediktsson 8ad11e7906 Adding copyrights. 2008-09-23 14:50:28 -07:00
John Benediktsson 78b5e36cac Adding math-compare vocabulary. 2008-09-23 14:36:21 -07:00
John Benediktsson 2521de100d Some improvements to math-finance based on feedback. 2008-09-23 14:10:04 -07:00
John Benediktsson 7435df7684 Adding first version of math.finance. 2008-09-23 10:33:36 -07:00
Slava Pestov c689ef53d8 Minor cleanup 2008-09-22 21:31:15 -05:00
Slava Pestov 379566374c Fix usages of nths 2008-09-12 18:15:22 -05:00
Slava Pestov cf80dd122a Updating code for make and fry changes 2008-09-10 22:11:40 -05:00
Doug Coleman ad890e8a31 if-empty changes 2008-09-06 17:15:25 -05:00
Slava Pestov 05f47c1aaf Prettyprinter now emits assoc-form tuples unless boa-tuple? is on 2008-09-06 03:23:54 -05:00
Slava Pestov bcc8483b5b Move match to basis since compiler.tree.debugger uses it, fix conflict 2008-09-05 19:48:44 -05:00
Slava Pestov aea0fed14c Fixing basis -> extra dependencies 2008-09-05 19:29:14 -05:00
Doug Coleman 89386ae636 left-trim -> trim-left 2008-09-05 18:56:57 -05:00
Slava Pestov 4f86c5ce7f Add unportable tags to blas for now 2008-09-03 20:09:39 -05:00
Doug Coleman 13722dd4a8 fix help 2008-09-02 15:34:40 -05:00
Doug Coleman 591839db9c fix tests 2008-09-02 15:10:37 -05:00
Doug Coleman 8d260bb01b fix test 2008-09-02 15:10:02 -05:00
Doug Coleman 4dc89ae427 fix tests 2008-09-02 13:07:37 -05:00
Slava Pestov 88aa1def35 More a UI dependency to basis 2008-08-31 20:13:06 -05:00
Slava Pestov f37546a5e7 Merge branch 'master' of git://factorcode.org/git/factor 2008-08-31 03:09:37 -05:00
Slava Pestov 5a0e548a47 Merge branch 'master' of git://repo.or.cz/factor/jcg 2008-08-31 03:09:23 -05:00
Doug Coleman cde71318ab new accessors 2008-08-31 02:52:11 -05:00
Joe Groff da3677dafb Change -in-place words in math.blas to use the "!" convention for destructive words. Update the math.blas documentation to match the expectations of help.lint 2008-08-30 18:54:04 -07:00
Doug Coleman cec45e524e fix docs 2008-08-30 15:20:32 -05:00
Doug Coleman 7578efaeec fix docs 2008-08-30 15:05:21 -05:00
Doug Coleman 6431ab9064 fix stack effects in math.blas.syntax 2008-08-30 10:26:54 -05:00
Slava Pestov a015de663b Inline some words for better optimizations 2008-08-29 00:26:56 -05:00
Slava Pestov 1997cbe9aa Fixing libraries for language changes 2008-08-28 22:28:01 -05:00
Slava Pestov 8346554b07 Minor updates 2008-08-27 16:24:04 -05:00
Slava Pestov 8aa6f673aa Optimizations and load fixes 2008-08-24 03:59:37 -05:00
Slava Pestov e96228b24c Move a few UI dependencies into basis 2008-08-22 22:10:49 -05:00
Doug Coleman e033d2e1b7 Merge branch 'master' of git://factorcode.org/git/factor 2008-08-13 21:33:27 -05:00
Slava Pestov bb76f2f617 Fix combinatorics tests 2008-08-13 18:57:57 -05:00
Slava Pestov f683c63da1 Fix code duplication 2008-08-13 14:20:09 -05:00
Rex Ford 6f767add2c documentation for scientists 2008-08-12 12:00:54 -04:00
Rex Ford 359bff5f15 Derivatives without dynamics OR locals 2008-08-12 11:24:00 -04:00
Rex Ford 6df077805d minor fixes 2008-08-10 18:20:14 -05:00
Rex Ford a44097af93 combinators should inline 2008-08-10 16:49:40 -05:00
Rex Ford 8785b24e04 Now with arbitrary accuracy 2008-08-10 16:44:17 -05:00
Slava Pestov bd35994d3c Merge branch 'master' of git://factorforge.org/git/drford 2008-08-06 22:42:22 -05:00
Rex Ford 5a9f05e227 it's all me, baby 2008-08-06 01:09:36 -05:00
Rex Ford e1f8e318bd that's me 2008-08-06 01:08:40 -05:00
Slava Pestov 3430c69c1e Re-organize persistent data structures 2008-08-06 01:06:14 -05:00
Rex Ford 2b2a91db0a erased extra vocabs, added inversed function support 2008-08-02 14:02:33 -04:00
Rex Ford 0e34b0259a Now with statistically unbiased approx. 2008-08-02 13:57:59 -04:00
Rex Ford 5ddb166caa renamed some defs 2008-08-02 13:57:17 -04:00
Slava Pestov d66f887736 Create basis vocab root 2008-07-28 22:03:13 -05:00
Slava Pestov 10322c11e3 Merge branch 'master' of git://repo.or.cz/factor/jcg 2008-07-27 16:56:29 -05:00
Eduardo Cavazos 96d7fd11dc math.geometry.rect: Add corner words 2008-07-27 00:10:34 -05:00
Joe Groff b41e619f77 Merge branch 'master' of git://factorcode.org/git/factor 2008-07-24 18:48:37 -07:00
Slava Pestov f53baa2529 Merge commit 'drford/master' 2008-07-24 00:11:55 -05:00
Rex Ford 47221b25c5 vocab fix 2008-07-24 01:09:01 -04:00
U-VICTORIA\Administrator ae6f1c20d2 Merge branch 'master' of git://factorcode.org/git/factor 2008-07-22 19:59:44 -07:00
Rex Ford 4fc9860c0a more minor fixes 2008-07-22 20:45:13 -04:00
Rex Ford fa2e448e38 eliminated circular dependancies and started documentation 2008-07-22 20:27:56 -04:00
Slava Pestov 49d34ab8a7 Cleanup 2008-07-22 04:44:44 -05:00
Rex Ford 967f2873ab New extra/math vocabs 2008-07-22 04:31:11 -04:00
Eduardo Cavazos c13e36e216 Merge branch 'master' of factorcode.org:/git/factor 2008-07-21 17:02:28 -05:00
Eduardo Cavazos f2a33f0a24 math.geometry and math.geometry.rect: Fix some problems with the methods 2008-07-21 17:01:44 -05:00
Joe Groff cc80b983c2 Merge branch 'master' of git://factorcode.org/git/factor 2008-07-20 20:18:14 -07:00
Slava Pestov 547c0e87b1 Merge branch 'master' of git://factorcode.org/git/factor 2008-07-20 20:26:56 -05:00
Slava Pestov 046a6e6ec0 Fix errors reported by builder 2008-07-20 20:26:44 -05:00
Eduardo Cavazos d937e03e1a Fix methods in math.geometry 2008-07-20 09:05:15 -05:00
Eduardo Cavazos cbbc476f55 Merge branch 'master' of factorcode.org:/git/factor 2008-07-20 05:01:21 -05:00
Eduardo Cavazos 4ad97e8ea7 math.geometry.rect: fix using 2008-07-20 04:56:22 -05:00
Eduardo Cavazos 5107c975a2 math.geometry.rect: add geometry methods 2008-07-20 04:23:43 -05:00
Eduardo Cavazos bb84e85d3d Add math.geometry 2008-07-20 04:22:30 -05:00
Joe Groff 25ff0b3b1f game-input documentation. bugfixes in game-input.scancodes and game-input.backend.iokit 2008-07-19 19:10:30 -07:00
Slava Pestov ac2bf0b87d Adding inline recursive declarations 2008-07-18 19:22:59 -05:00
Slava Pestov ad87a38ab8 Refactor binary search 2008-07-15 17:16:08 -05:00
Joe Groff 2b9d2302e6 Change math.blas.vectors division tests so that everything is powers of two--no floating-point error 2008-07-15 08:57:24 -07:00
Joe Groff f1b745d76e Pretty-print methods for BLAS objects 2008-07-14 18:54:09 -07:00
Slava Pestov e6f03f9a4e Documentation updates 2008-07-13 19:55:54 -05:00
Eduardo Cavazos c1328ac08e math.physics.pos: distance method 2008-07-12 12:22:27 -05:00
Eduardo Cavazos 9232f16732 math.geometry.rect.tests 2008-07-11 23:54:53 -05:00
Eduardo Cavazos 24a063ea76 math.physics.pos and math.physics.vel 2008-07-11 19:02:43 -05:00
Eduardo Cavazos e0602a621d add math.geometry.rect-docs 2008-07-11 18:14:05 -05:00
Eduardo Cavazos 1026587d63 add math.geometry.rect 2008-07-11 18:07:04 -05:00
Slava Pestov 382c35a933 Merge branch 'master' of git://factorcode.org/git/factor 2008-07-10 02:16:57 -05:00
Slava Pestov 5d9c1ea0a0 Documentation updates, rename unfold to produce 2008-07-10 01:00:27 -05:00
Doug Coleman c3ea84a026 use libcblas on openbsd 2008-07-09 18:09:03 -05:00
U-SLAVA-DFB8FF805\Slava 0051a50b75 Move general shufflers and combinators into generalizations, move narray there too 2008-07-07 19:36:33 -05:00
Joe Groff 402b2079aa some headings for the math.blas.syntax help summary 2008-07-05 19:49:54 -07:00
Joe Groff 1b63addff1 oops... add math.blas.syntax documentation 2008-07-05 19:46:10 -07:00
Joe Groff 72b78eaef9 performance improvement for converting large datasets to blas matrices 2008-07-05 19:39:26 -07:00
Joe Groff 761fbfeb8f Vsub word for slicing BLAS vectors. Documentation improvements 2008-07-05 18:28:53 -07:00
Joe Groff 954737dfeb fix blas library load for unix. fix reference to old empty-vector word in matrices 2008-07-05 15:13:48 -07:00
Joe Groff bff6c521bc Fix $side-effects in blas help 2008-07-05 11:30:42 -07:00
Joe Groff aa269f14ca Documentation for math.blas 2008-07-05 11:24:01 -07:00
Joe Groff 727d9edcd3 BLAS level 2/level 3 interface words 2008-07-04 20:57:22 -07:00
Joe Groff 4befcf201b Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:

	core/bit-arrays/bit-arrays.factor
2008-07-04 20:07:25 -07:00
Eduardo Cavazos 79f19bfe95 math.quaternions: use tri* in euler 2008-07-04 11:22:59 -05:00
Eduardo Cavazos 22fdbf53f6 math.quaternions: use 2bi in q* 2008-07-04 11:19:42 -05:00
Slava Pestov 8347710dd5 Help lint fixes 2008-07-04 02:52:27 -05:00
Joe Groff bd2841deea refactor math.blas.vectors a bit 2008-07-03 21:16:09 -07:00
Slava Pestov f7eecc7893 Move bit-arrays and float-arrays to extra 2008-07-02 02:03:30 -05:00
Joe Groff 11b721c90c CBLAS library bindings. Factor-ish bindings to better part of level 1 BLAS in math.blas.vectors. Syntax for building BLAS vectors in math.blas.syntax 2008-07-01 22:00:22 -07:00
Slava Pestov f7b7001f39 BOA constructors now check types 2008-06-30 01:44:58 -05:00
Slava Pestov 3b41e31584 More tuple declaration work 2008-06-29 21:37:57 -05:00
Slava Pestov b36e06d0d6 Builtinn types now use new slot accessors; tuple slot type declaration work in progress 2008-06-28 02:36:20 -05:00
Eduardo Cavazos bf238283da Update code for combinators.short-circuit 2008-06-24 13:47:54 -05:00
Slava Pestov 198b1a0d56 Clean up quadratic 2008-06-14 04:01:07 -05:00
Eduardo Cavazos bdd66927fc More short-circuit updates 2008-06-10 20:42:55 -05:00
Slava Pestov 29fa4a8a54 assoc-find is no longer generic 2008-06-09 05:22:21 -05:00
Slava Pestov ba8f1388ab Fixing everything for mandatory stack effects 2008-06-09 02:14:14 -05:00
Slava Pestov 9dd5c9919f Mandatory stack effect annotations 2008-06-08 15:32:55 -05:00
U-SLAVA-DFB8FF805\Slava 5bae4c6e89 Windows C runtime library doesn't have inverse hyperbolic functions 2008-06-07 07:22:09 -05:00
James Cash 0ca627051e Changing vocabs USING: to reflect which words are in lists and lists.lazy 2008-06-03 16:57:29 -04:00
James Cash 1bd222228c Making sure that vocabs only have lists or lists.lazy if they need them 2008-06-03 05:06:52 -04:00
James Cash 8d4de9d9ed Some files only need lists.lazy, not lists as well 2008-06-03 04:41:36 -04:00
James Cash 1818a743bd Updating libraries that uses lazy-lists to use lists/lazy 2008-06-03 04:27:25 -04:00
Slava Pestov c3aa938869 Another unit test 2008-05-26 17:21:51 -05:00
Slava Pestov 8af320a2c0 Improve math.functions 2008-05-26 17:15:54 -05:00
Doug Coleman d33b57506a find-relative-prime didn't handle numbers <= 1 correctly 2008-05-10 13:18:13 -05:00
Doug Coleman 9da8bed8f9 refactor miller-rabin a bit
still uses too many locals, but at least they're not symbols
2008-05-10 13:06:40 -05:00
Slava Pestov 08af497255 Fix /f for large integers 2008-04-28 21:26:31 -05:00
Doug Coleman 439c138aa5 fix load errors 2008-04-26 11:03:41 -05:00
Doug Coleman 4d0ba8c3c1 reverse args for assoc-diff, diff
fix lots of usings
fix help lint
2008-04-26 02:01:43 -05:00
Doug Coleman b7c1f9dbe8 extra changes:
index* -> index-from
last-index* -> last-index-from
1 tail -> rest
1 tail-slice -> rest-slice
subset -> filter
prepose
find* -> find-from
find-last* -> find-last-from
before, after generic, < for integers
make between? work for timestamps
2008-04-25 23:17:08 -05:00
Doug Coleman 44e48c72a8 fix typo 2008-04-25 15:56:15 -05:00
Doug Coleman b440bda681 error message 2008-04-25 00:25:37 -05:00
Slava Pestov a3a0ce5bee Fixes 2008-04-20 06:15:08 -05:00
Slava Pestov 55f6636bc0 FFI string encoding conversion 2008-04-20 05:15:46 -05:00
Slava Pestov 18c2f11d06 Move columns, bit-vectors, byte-vectors, float-vectors to extra 2008-04-19 22:56:28 -05:00
Slava Pestov 390afacac8 Better modular arithmetic optmizer 2008-04-17 12:22:24 -05:00
Doug Coleman f64d511ca6 add usings 2008-04-14 02:40:32 -05:00
Doug Coleman 72080fda4a construct-boa -> boa
construct-empty -> new
2008-04-13 15:06:27 -05:00
Doug Coleman acf6132389 update cond/case 2008-04-11 12:56:48 -05:00
Eduardo Cavazos e7c3d888f6 math.points: Utility words for two and three dimensional points 2008-04-08 04:04:12 -05:00
Samuel Tardieu fe8448b4e8 Use more combinators 2008-04-04 11:20:10 +02:00
erg 344a98802f tweak word 2008-04-03 18:36:53 -05:00
erg 0b90458cca simplify bitroll 2008-04-03 13:27:10 -05:00
erg d642347f34 move bit twiddling words to math.bitfields.lib
use 32-bit in mersenne-twister
2008-04-03 11:55:08 -05:00
Doug Coleman 23768dd482 remove singleton? from sequences.lib
fix bootstrap error
2008-04-01 17:06:36 -05:00
Eduardo Cavazos aa40350aa7 replace add* and add with prefix and suffix 2008-03-31 18:18:05 -06:00
Slava Pestov c22af5c7a6 Rename 2apply to bi@ 2008-03-29 20:36:58 -05:00
Slava Pestov 1f3e6fd0b7 combinators.cleave is now core 2008-03-28 23:00:20 -05:00
Eduardo Cavazos 010856c870 Add help for math.ranges 2008-03-20 17:33:01 -06:00
Doug Coleman 3e7940216e swap append to swap append
refactoring path+ to append-path
swap path+ to prepend-path
calendar gmt-offset to duration
2008-03-19 19:15:32 -05:00
Doug Coleman 5296c907d9 remove random-bits 2008-03-19 16:19:00 -05:00
Slava Pestov 37d5ca384e Clean up cross product 2008-03-13 03:36:13 -05:00
Slava Pestov 120c9cacb7 Fixing 64-bit image generation 2008-03-12 01:54:29 -05:00
Slava Pestov 5af2be3798 More documentation fixes 2008-03-11 21:01:39 -05:00
Slava Pestov 32526206f1 Help fixes 2008-03-11 19:51:58 -05:00
Doug Coleman 5c93d43aa1 add some more bit-twiddling words 2008-03-04 22:32:42 -06:00
Slava Pestov e98cd1fd59 New convention for unit tests 2008-03-01 17:00:45 -05:00
Doug Coleman 260acff952 add coprime? to math.primes 2008-02-27 23:09:29 -06:00
Slava Pestov 64469916a9 New locals syntax; added M:: 2008-02-26 18:40:32 -06:00
Slava Pestov 727f91409d Split off concurrency.mailboxes, add timeout support to promises, locks, mailboxes, semaphores, count-downs 2008-02-21 23:47:06 -06:00
Slava Pestov 8c9966b17c pick pick is 2over 2008-02-16 18:50:26 -06:00
Slava Pestov cdbd0a4c05 Fix load error 2008-02-14 01:06:46 -06:00
Slava Pestov 5f19ec207f Fix indentation 2008-02-12 17:32:26 -06:00
Alexander Solovyov 01a811496f Stirling's factorial approximation 2008-02-13 00:24:32 +02:00
Aaron Schaefer b4324cdd58 Update search paths after combinators.lib -> sequences.lib move 2008-02-12 16:49:53 -05:00
Aaron Schaefer b3f65400dc Merge branch 'master' of git://factorcode.org/git/factor 2008-02-11 11:46:11 -05:00
Slava Pestov 2ecd1ba127 Improve ratio syntax 2008-02-10 01:40:17 -06:00
Aaron Schaefer 875a6fdc6e Remove 6.26Kb of trailing whitespace from math.primes.list 2008-02-07 22:24:54 -05:00
Slava Pestov 2541c62e29 Fix code for math.parser changes 2008-02-06 21:15:47 -06:00
Slava Pestov f3c8bd266b Improved syntax for ratios 2008-02-06 20:05:03 -06:00
Slava Pestov 90ed177a9c Fixing load-everything and unit tests 2008-02-06 19:23:39 -06:00
Slava Pestov be2c8b13d7 Rename unit-test-fails to must-fail and add must-fail-with to replace [ t ] [ [ ... ] catch ... ] unit-test idiom 2008-02-06 13:47:19 -06:00
Slava Pestov 3f9e4bcf00 More efficient specializers 2008-02-05 20:11:35 -06:00
Slava Pestov 258a27432f Merge git://projects.elasticdog.com/git/factor 2008-01-29 20:51:07 -06:00
Aaron Schaefer c770e5d586 Fix nPk and add permutation words to math.combinatorics; including docs/tests 2008-01-27 20:00:31 -05:00
Slava Pestov 1c91a286e5 Updating summary and authors 2008-01-27 01:02:31 -04:00
Slava Pestov 27701acaaf Fix using 2008-01-26 23:44:00 -04:00
Aaron Schaefer 6d5c1bf1d2 Add more math.constants 2008-01-24 18:12:39 -05:00
Aaron Schaefer cf670bd234 Add summary for math.text 2008-01-22 17:37:54 -05:00
Aaron Schaefer 817dfbfbbe Add summary for Miller-Rabin vocab, and cleanup tests 2008-01-22 17:17:04 -05:00
Aaron Schaefer 62415768ca Minor tweak to math.text.english 2008-01-21 22:36:20 -05:00
Doug Coleman 6a4062bf38 minor cleanups 2008-01-14 15:06:12 -10:00
Aaron Schaefer 76558babf4 Generalize factor-2s to eliminate special case exception 2008-01-14 15:04:21 -05:00
Aaron Schaefer 8bc631f5ed Rename count-factors to group-factors and update docs 2008-01-14 11:33:08 -05:00
Aaron Schaefer 12b24af934 Simplify totient in math.primes.factors 2008-01-14 02:38:23 -05:00
Aaron Schaefer da98683d8e Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:

	extra/editors/vim/vim-docs.factor
2008-01-13 16:49:07 -05:00
Doug Coleman a6d0c33a94 fix word name 2008-01-13 10:09:59 -10:00
Doug Coleman 376644794c more lint cleanups 2008-01-13 08:29:04 -10:00
Doug Coleman 0613d01fcc other algorithms use factor-2s, put it back to normal 2008-01-13 07:51:46 -10:00
Aaron Schaefer 2af1085db1 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:

	extra/math/statistics/statistics-docs.factor
2008-01-13 10:42:38 -05:00
Aaron Schaefer 82fd581e9f Fix circular doc errors 2008-01-13 10:41:35 -05:00
Doug Coleman b14a0e54e4 fix typo 2008-01-12 21:49:47 -10:00
Doug Coleman f8a0d7403d small cleanup in miller-rabin 2008-01-12 21:46:53 -10:00
Doug Coleman 37544fe24e remove blank line 2008-01-12 20:43:58 -10:00
Doug Coleman 304aa98fe7 start cleanup of miller-rabin 2008-01-12 20:07:49 -10:00
Samuel Tardieu cafa8cf4a1 Fix statistics-docs 2008-01-12 23:05:02 +01:00
Doug Coleman 1a2ca6e463 Merge git://factorcode.org/git/factor
Conflicts:

	extra/html/elements/elements.factor
2008-01-10 20:51:50 -10:00
Aaron Schaefer 6385289244 Merge branch 'master' of git://factorcode.org/git/factor 2008-01-10 22:06:17 -05:00
Doug Coleman 9a599ec459 add bit-banging words 2008-01-10 16:56:32 -10:00
Slava Pestov c8360f5ae5 Rename curry* to with 2008-01-09 17:36:30 -05:00