50 Commits

Author SHA1 Message Date
josdejong
36c38982e5 ArgumentsError now extends Error instead of SyntaxError 2014-01-31 23:22:17 +01:00
josdejong
5af9c51adb Added stacktrace to UnsupportedTypeError and ArgumentsError 2014-01-31 19:58:06 +01:00
josdejong
591c3f9000 Fixed #132: Added unit feet 2014-01-20 21:43:11 +01:00
josdejong
8226e524f9 Added plurals and aliases for units. 2014-01-18 14:19:08 +01:00
josdejong
8400b99b1e History updated 2014-01-07 22:05:22 +01:00
josdejong
a5f10ff709 Added lowercase l for unit litre 2014-01-07 21:49:47 +01:00
josdejong
f6acb12e4d Implemented expression compilation for 80% 2014-01-01 20:46:30 +01:00
josdejong
7091cd4fa7 Added error for deprecated function in 2013-12-21 21:29:50 +01:00
Elijah Insua
be67514557 move the 'in' unit conversion keyword to 'to'
This also enables 'in' as an alias of 'inch'.  refs #120
2013-12-20 15:31:18 -07:00
josdejong
df345c66cb Fixed #113: bug in prefixes for squared and cubic meter (m2 and m3) 2013-12-14 14:43:25 +01:00
josdejong
0210ec0d41 UnsupportedTypeError can now determine the type of values 2013-11-28 17:15:28 +01:00
josdejong
f5ea5938a9 Renamed scientific notation to exponential in function format 2013-11-28 16:28:04 +01:00
josdejong
9566218b12 Function add can now handle mixed complex and big numbers 2013-11-27 15:21:02 +01:00
josdejong
8761910b75 Fixed a bug in collection.deepMap2 2013-11-26 20:45:39 +01:00
josdejong
b366d97a20 Function resize now has an extra optional parameter defaultValue 2013-11-21 12:09:12 +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
5f1aee3550 Some fixes and improvements in the resize function 2013-11-07 22:42:21 +01:00
josdejong
a19b1a1285 Functions ones and zeros now return an empty matrix instead of a number 1 or 0 when no arguments are provided 2013-11-07 17:16:34 +01:00
josdejong
9485cb2459 Simplified/improved typeof function 2013-10-31 11:52:03 +01:00
josdejong
b071e5daba Removed utility functions isScalar, toScalar, isVector, toVector from Matrix and Range. 2013-10-31 10:54:42 +01:00
josdejong
e1ead2f7a6 Added function format to Selector 2013-10-26 14:07:47 +02:00
josdejong
04c41fb42e Implemented advanced options in format to customize precision, scientific/fixed/auto notation (see #100). 2013-10-24 15:12:04 +02:00
Jos de Jong
13b7e6acee Merge pull request #103 from guillermobox/develop
Reduce functionality
2013-10-24 04:31:44 -07:00
Guillermo Indalecio Fernandez
da1d23bc0a Fixed tests and reduce function 2013-10-22 20:16:04 +02:00
Guillermo Indalecio
49429a5e49 Fixed small typo 2013-10-22 19:04:13 +02:00
Guillermo Indalecio
42560704b8 Fixing reduce function to the pull request 2013-10-22 19:02:35 +02:00
Guillermo Indalecio Fernandez
8db830c31d Added full reduce capabilities not tested 2013-10-22 10:49:29 +02:00
josdejong
c8a289a08c Removed unnecessary .js suffix in module require statements 2013-10-20 14:01:31 +02:00
josdejong
abff8efdbc Mixed matrix input now always returns a Matrix (needed to mace collection static) 2013-10-19 22:01:10 +02: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
3c7174c764 Renamed options to math.options.format.precision and math.options.matrix.defaultType 2013-10-19 15:00:32 +02:00
josdejong
71c36a94cf Statistics functions max and min now return the max and min of the flattened array in case of multidimensional arrays. 2013-10-18 10:47:43 +02:00
josdejong
799819423c Implemented a function equals for complex numbers. 2013-10-08 15:12:11 +02:00
josdejong
5481b0a663 Introduced an option math.options.matrix.default which can have values matrix (default) or array. This option is used by the functions eye, ones, range, and zeros, to determine the type of matrix output. 2013-10-01 20:37:28 +02:00
josdejong
f48c07bdd8 Getting or setting a subset of a matrix will automatically squeezed/unsqueezed the submatrix 2013-09-25 21:59:35 +02:00
josdejong
f68bc8e5f2 Renamed MatrixNode to ArrayNode 2013-09-25 21:43:26 +02:00
josdejong
47c4b4c3a7 Replaced functions get and set of Matrix with a single function subset 2013-08-31 21:20:02 +02:00
josdejong
9746dc37c2 Changed matrix indexes of expression parser to one-based (Fixed #66) 2013-08-29 22:11:30 +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
35e789d3fe Made math.subset, Matrix.get, Matrix.set more strict: only accept an Index 2013-08-18 15:28:20 +02:00
josdejong
9cb354a6da Index functionality getting in place now. 2013-08-18 14:37:03 +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
josdejong
7935546630 Removed type Range. function math.range now returns an expanded series 2013-08-17 13:42:57 +02:00
josdejong
e704c79e17 Removed the feature to automatically convert a complex
value with an imaginary part equal to zero to a number (see #59)
2013-08-14 14:41:35 +02:00
Sebastien Piquemal
a595266347 added all files in lib/ 2013-08-14 15:39:21 +04:00