22 Commits

Author SHA1 Message Date
jos
538ea10e15 Changed the json field type name from @type to a safer mathjs. 2015-02-18 22:11:54 +01:00
jos
4bd7dc5633 Implemented toJSON and fromJSON and a reviver for most data types 2015-02-18 20:34:43 +01: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
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
62a446ab34 Improved index out of range errors. 2014-07-17 21:00:24 +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
josdejong
f568ae75c1 More unit tests added 2014-04-03 20:58:43 +02:00
josdejong
9ae103c394 More unit tests 2014-03-21 21:38:26 +01:00
josdejong
f1ea498927 Added some more unit tests 2014-03-15 15:27:05 +01:00
josdejong
d9090588b0 Implemented function math.resize 2013-11-15 21:23:22 +01:00
josdejong
0a0596bd7e Simplified and reworked the Matrix class. Implemented functions Matrix.get and Matrix.set 2013-11-09 21:36:03 +01:00
josdejong
652054bc41 Implemented functions min and max for Range and Index 2013-11-09 15:06:32 +01:00
josdejong
9485cb2459 Simplified/improved typeof function 2013-10-31 11:52:03 +01:00
josdejong
e61d2f965b Fixes in the new function math.format(precision). Updated docs and tests. 2013-10-19 21:44:54 +02:00
josdejong
a4bda611df Implemented function print (splitted from function format) 2013-10-19 18:10:50 +02:00
josdejong
2158a28e33 Changed matrix index notation of expression parser from round brackets (...) to square brackets [...] 2013-08-21 13:41:15 +02:00
josdejong
99b14dd32e Implemented Index and Range in parser 2013-08-19 22:04:41 +02:00
josdejong
8e9224c60b Removed the subset functionality from Index, makes more sense to put that in Matrix 2013-08-18 13:46:10 +02:00
josdejong
24b3b7eb43 First implementation of Index and math.index 2013-08-17 15:35:48 +02:00