102 Commits

Author SHA1 Message Date
rjbaucells
5d49bebed2 CRS and CCS fixes 2015-03-04 22:35:57 -05:00
rjbaucells
5a389126aa Matrix format implementations 2015-03-04 20:45:29 -05:00
rjbaucells
da19cef9b4 Storage format interface 2015-03-04 20:07:50 -05:00
Rogelio J. Baucells
c5b19a5e98 Initial multiply implementation for CRS 2015-03-04 16:24:24 -05:00
Rogelio J. Baucells
5ee1ff2615 Dense format 2015-03-04 15:32:16 -05:00
Rogelio J. Baucells
6f06aa69c7 CCS and CRS sparse matrix formats 2015-03-04 15:11:20 -05:00
Rogelio J. Baucells
b4463d9ef3 Initial require() changes 2015-03-04 13:53:32 -05:00
jos
97e452e544 Fixed #296: Added unit stone (6.35 kg) 2015-03-02 21:18:09 +01:00
jos
538ea10e15 Changed the json field type name from @type to a safer mathjs. 2015-02-18 22:11:54 +01:00
jos
a0d43be53d Fixed Help.fromJSON 2015-02-18 21:21:06 +01:00
jos
1754ae06c1 Implemented fromJSON and toJSON in Help 2015-02-18 21:13:19 +01:00
jos
4bd7dc5633 Implemented toJSON and fromJSON and a reviver for most data types 2015-02-18 20:34:43 +01:00
jos
8892a8c026 Implemented Matrix.toJSON and Matrix.fromJSON 2015-02-17 21:42:10 +01:00
jos
9193965922 Some more unit tests 2015-02-17 21:18:25 +01:00
jos
2cedb78abd Implemented Help.fromJSON and Help.toJSON 2015-02-17 21:13:58 +01:00
jos
eafd3c3c0b Implemented Complex.fromJSON and Complex.toJSON 2015-02-17 21:02:05 +01:00
jos
c29f33248c Fixed #281: improved formatting complex numbers. Round the real or imaginary part to zero when the difference is larger than the configured precision. 2015-02-17 14:59:39 +01:00
jos
2ce01fb8f8 Fixed Help.toString not outputting example results returning false 2014-12-23 21:29:57 +01:00
jos
05cb69f6da Converting a unit without value will now result in a unit *with* value 2014-12-14 13:35:17 +01:00
jos
7132a6f3c2 Fixed #221 for one-based implementations of map and forEach 2014-10-14 09:03:04 +02:00
jos
52a922e937 Fixed #210: Disabled array notation for ranges in a matrix index the expression parser 2014-09-09 17:33:53 +02:00
jos
00d8e1ba53 Using format precision=14 in stringified output of Help 2014-09-05 09:15:11 +02:00
jos
41663147e6 Implemented function sort 2014-08-14 22:24:15 +02:00
jos
7f6b13a797 Changed the default value of new entries in resized matrices to zero. 2014-08-12 22:35:56 +02:00
jos
d274a50cbf Fixed #205: A returned matrix subset is now only squeezed when the index consists of scalar values, and no longer for ranges resolving into a single value. 2014-08-09 16:48:00 +02:00
jos
16d2e41f59 Improved function unsqueeze 2014-08-03 18:04:57 +02:00
jos
e5ce909524 Reworked the way matrices are resized when dimensions are added/removed 2014-08-03 15:56:39 +02:00
jos
7b08047061 Changed min, max, and mean to one-based dim 2014-07-24 21:35:11 +02:00
jos
8200955d71 Removed unnecessary names of functions 2014-07-21 22:14:27 +02:00
jos
302aa17788 Index now accepts a Matrix as well as input, downgrades to Array 2014-07-21 21:43:20 +02:00
jos
21b34cfa1a Implemented transforms, moved all one-based to zero-based logic for expressions to transforms. 2014-07-19 21:47:15 +02:00
jos
40986a1325 Using strict mode now in all files (added 'use strict'; on top of every file) 2014-07-18 23:19:14 +02:00
jos
1a9ceac955 Multi-line expressions now return a ResultSet instead of an Array. 2014-07-18 21:34:37 +02:00
jos
62a446ab34 Improved index out of range errors. 2014-07-17 21:00:24 +02:00
jos
5e1cfbf545 Implemented implicit multiplication. Fixed a bug with multiplying non-valued temperatures with a number 2014-06-30 13:43:50 +02:00
jos
64c8693f82 Objects Complex, Unit, and Help now return their string representation when calling .valueOf() (see #190) 2014-06-17 22:14:12 +02:00
jos
64368ec4ad Added unit drop (gtt) 2014-06-09 09:34:53 +02:00
jos
d369733d09 Documented complex polar coordinates 2014-04-16 09:55:55 +02:00
josdejong
97cbb0093f Moved errors to their own namespace and folder 2014-04-11 18:02:29 +02:00
josdejong
922ce679e6 Moved UnsupportedTypeError to the others, and made it independent of the math namespace 2014-04-11 17:44:55 +02:00
josdejong
492d7f4c4f Moved ArgumentsError from lib/type/ to lib/util/ 2014-04-06 21:25:46 +02:00
josdejong
d0fb727c43 Implemented DimensionError and IndexError 2014-04-06 20:53:23 +02:00
josdejong
7baa9af67c Added unit alias lbs (pound mass). 2014-04-06 13:07:29 +02:00
josdejong
c7c17c6f64 Removed dependency on global math from Complex 2014-04-05 23:21:38 +02:00
Finn
333f881c4d Add constructor support for polar and {re:..,im:..} Fixes #76 2014-04-05 02:14:14 +02:00
Finn
7b32c7fb00 Add toPolar method #76 2014-04-05 01:07:55 +02:00
Finn
754b33b983 Add fromPolar and math.complex with polar input #76 2014-04-04 01:27:05 +02:00
josdejong
f568ae75c1 More unit tests added 2014-04-03 20:58:43 +02:00
josdejong
a073a95859 Implemented functions sum, prod, var, std. Reducing a matrix over a specified dimension still missing 2014-03-29 14:45:09 +01:00
josdejong
9ae103c394 More unit tests 2014-03-21 21:38:26 +01:00