85 Commits

Author SHA1 Message Date
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
josdejong
f51f4454f5 More unit tests 2014-03-17 21:29:52 +01:00
josdejong
f1ea498927 Added some more unit tests 2014-03-15 15:27:05 +01:00
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