135 Commits

Author SHA1 Message Date
josdejong
aa471db411 Upperbound of range is now excluded 2013-08-09 22:09:46 +02:00
josdejong
e1f890e1f6 Added a ton of semicolons ;) 2013-08-07 20:52:43 +02:00
Sebastien Piquemal
0084920875 merged random functions with develop 2013-08-07 20:37:26 +04:00
Sebastien Piquemal
31e6767824 minor fixes 2013-08-07 20:19:53 +04:00
josdejong
10633d7237 Minor improvements in the static functions of prototypes 2013-08-07 14:42:02 +02:00
josdejong
4b20d7cb88 Directly export prototypes as module.exports 2013-08-07 14:22:44 +02:00
josdejong
283e76e4e9 Packed all functions in a closure (makes them environment independent) 2013-08-07 14:12:07 +02:00
josdejong
fe06d514e0 Created shared module math.js for all functions (resolves circular references) 2013-08-06 21:50:15 +02:00
josdejong
8cc9ceb980 Changed all source files into node.js modules 2013-08-05 23:05:23 +02:00
Sebastien Piquemal
1b30476443 random and randomInt more flexible args 2013-08-04 18:32:30 +04:00
Sebastien Piquemal
1c1a84d1cf refactored random, randomInt more tests 2013-08-04 18:06:18 +04:00
josdejong
6a6b5c3e61 Replaced all x instanceof Array with Array.isArray(x) 2013-08-04 14:30:38 +02:00
josdejong
19b507b9f0 Refactored all code to 2 space indentation 2013-08-04 14:07:47 +02:00
Sebastien Piquemal
e47f506eef merged with develop 2013-08-04 12:47:28 +04:00
Sebastien Piquemal
dca7208fb1 merged randomMatrix to random 2013-08-04 12:42:01 +04:00
josdejong
0fef35409b Fixed #44: allow multiple unary minus operators after each other 2013-08-03 13:04:54 +02:00
josdejong
3726918ba4 Updated readme and history 2013-08-03 12:42:52 +02:00
Sebastien Piquemal
e2c4248a97 added randomMatrix function 2013-08-02 18:55:59 +04:00
Sebastien Piquemal
10645f01d0 added pickRandom 2013-08-02 17:58:26 +04:00
Sebastien Piquemal
a71250a7dd added argument check 2013-08-02 17:49:21 +04:00
Sebastien Piquemal
c834fbb38a added normal distribution 2013-08-02 15:49:31 +04:00
Sebastien Piquemal
1e356b1c4b bare bones for distributions 2013-08-02 13:54:27 +04:00
josdejong
e9b9f0c4e3 Changed matrix indexes from one-based to zero-based (Fixed #23) 2013-07-21 22:11:11 +02:00
josdejong
fdfc6697e1 Implemented constants true, false.
Implemented function boolean(value)
2013-07-21 14:12:37 +02:00
josdejong
881889dec0 Renamed unaryminus to unary 2013-07-08 14:11:42 +02:00
josdejong
a8879df0a8 Added the docs again to the library (yes yes that makes it bigger. We wil enable custom, stripped builds later on) 2013-07-04 13:40:09 +02:00
josdejong
504b1fa9a1 Functions size and squeeze now return a Matrix instead of an Array as output on Matrix input 2013-07-03 14:47:40 +02:00
josdejong
9d246aa021 Fixed a bug in determining node dependencies in function assignments 2013-06-26 21:37:44 +02:00
josdejong
47980ca81b Implemented custom node handler in the parser 2013-06-26 13:19:15 +02:00
josdejong
76b154e285 Complex computations will return a (real) Number instead of Complex(x,0) when possible. 2013-06-16 14:46:42 +02:00
josdejong
7df862b7fa Made function multiply a little smarter in dealing with complex calculations and reducing complex results to a number when possible 2013-06-16 14:05:15 +02:00
josdejong
4dda904e8b Released version 0.9.1 2013-06-14 21:49:17 +02:00
josdejong
965ce87401 Removed support for Workspace to keep the library focused 2013-06-14 21:44:35 +02:00
josdejong
43cc541762 Fixed #14: wrong calculation of i/0, also fixed i*Infinity 2013-06-14 21:18:14 +02:00
josdejong
01400af0db Fixed Complex constructor not accepting NaN as parameter (see also issue 14) 2013-06-13 20:11:50 +02:00
josdejong
8f03cc2226 Implemented element wise operators .* ./ .^ 2013-05-31 22:27:58 +02:00
josdejong
f2b1b2ad9f Implemented element wise functions edivide, emultiply, and epow 2013-05-31 20:47:45 +02:00
josdejong
134b8fe07c Implemented construction function string 2013-05-29 21:06:12 +02:00
josdejong
755d0769e6 Implemented construction function number 2013-05-29 20:34:47 +02:00
josdejong
0b2e28403b Fixed in mod for negative numerators. Added more input validation. Added tests 2013-05-29 20:14:51 +02:00
josdejong
33bbd402b2 Implemented context variable end for subsets of strings 2013-05-27 21:48:48 +02:00
josdejong
23ffed0994 Implemented function subset, including support for string and scalar 2013-05-26 15:43:21 +02:00
josdejong
f09c3fccce Some more tests added 2013-05-24 20:44:08 +02:00
josdejong
19f7150b23 Updated documentation on eval, parse, and parser 2013-05-24 19:57:41 +02:00
josdejong
1f6bcc8542 Implemented function math.parse(expr [,scope]), extended function math.expr(expr [,scope]). 2013-05-21 21:01:34 +02:00
josdejong
c3dcf6aa43 Some comments updated 2013-05-20 09:42:55 +02:00
Jos de Jong
e3442c1c2f Merge pull request #12 from bcuccioli/master
Compute determinant in polynomial-time.
2013-05-18 23:35:47 -07:00
Bryan Cuccioli
169c3ea593 Use polynomial-time algorithm to compute determinant. 2013-05-19 01:26:15 -04:00
josdejong
0090fdd925 Extended import function 2013-05-18 20:11:03 +02:00
josdejong
2fe383a19c More tests and minor. Improved flexibility of data constructors. 2013-05-18 19:39:01 +02:00