95 Commits

Author SHA1 Message Date
Ben Weinshel
650cf86006 change decimaljs to use es6 version 2018-07-13 14:00:28 -05:00
jos
b44ce1477a Fixed many functions (for example add and subtract) not working with matrices having a datatype defined 2018-07-08 21:11:41 +02:00
jos
6301801145 Add benchmark to test numeric matrices vs generic matrices 2018-07-08 20:54:10 +02:00
gap
d15498715d Improve debugging support
When this error is encountered in the field, I see it via honeybadger, but I have none of the context about what unit it was called in, and what unit it was being converted to. Help the debugging by adding some info to the exception. I'm not entirely sure that 'toString' is what I want here - perhaps others in the community can help make that the right expression?
2018-06-16 14:22:21 -05:00
ssaket
886b291fc3 modified the error log 2018-06-14 22:53:51 +05:30
ssaket
9bf6a30332 fixed lint issues 2018-06-14 20:27:53 +05:30
ssaket
f473064768 Extend the factory function math.complex() to support math.complex({abs: ..., arg: ..}) 2018-06-14 18:46:28 +05:30
jos
e844004cbf Removed redundant escape characters 2018-06-13 21:15:10 +02:00
jos
600cfb403a Fix return statement should not contain assignment 2018-06-13 17:37:27 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
b7edef2d18 Fixed inconsistent curly braces of cde blocks 2018-06-13 16:59:43 +02:00
jos
f1ce473457 Consistend camel case naming of variables and functions 2018-06-13 16:09:51 +02:00
jos
1f0a37a0cb Split initialized 'const' declarations into multiple statements 2018-06-13 15:31:37 +02:00
jos
b6b36bfd9b Use strict equality checks everywhere (=== and !==) 2018-06-13 15:02:21 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
c2777c856b Fixed linting issues "Unexpected template string expression" 2018-06-12 21:18:45 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
35329d7db4 Move lib to src 2018-06-06 14:37:39 +02:00
Sebastien Piquemal
aa0249d458 fixed npm install, changed src to lib 2013-08-14 15:00:12 +04:00
josdejong
3f79c70473 Improved module structure, removed references to a global namespace 2013-08-11 20:42:32 +02:00
josdejong
b6f51128f0 Added function description to the output of help 2013-08-11 13:55:14 +02:00
josdejong
20e4456747 Fixed #26: functions ones and zeros now adhere to geometric dimensions. 2013-08-11 13:33:11 +02:00
josdejong
d76602a2ee Changed syntax of range to range(start, end [, step]) 2013-08-09 22:33:58 +02:00
josdejong
aa471db411 Upperbound of range is now excluded 2013-08-09 22:09:46 +02: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
38d8091d0c A little restructuring 2013-08-07 09:06:36 +02:00
josdejong
509cba8076 Fixed Selector initialization 2013-08-06 22:34:20 +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
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
Jim Garrison
ed285b0ba0 update Matrix.prototype.resize() doc to refer to "matrix", not "vector" 2013-07-23 13:02:46 -07: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
bff08984da Fixed selector not accepting 0 as value (Fixed #24). 2013-07-21 13:28:19 +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
76b154e285 Complex computations will return a (real) Number instead of Complex(x,0) when possible. 2013-06-16 14:46:42 +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
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
23ffed0994 Implemented function subset, including support for string and scalar 2013-05-26 15:43:21 +02:00
josdejong
2fe383a19c More tests and minor. Improved flexibility of data constructors. 2013-05-18 19:39:01 +02:00
josdejong
bf13f9ceb8 Fixed a bug in resizing matrices when replacing a subset. 2013-05-10 19:20:27 +02:00
josdejong
6bd857ca7e Implemented index parameter 'end' 2013-05-09 14:47:23 +02:00
josdejong
bf6b707607 Fixed parser returning NaN instead of throwing an error for a number with multiple decimal separators 2013-04-27 14:26:26 +02:00
josdejong
548708ffaa Improvements in parser and node tree. Implemented Params and Operator. Some first simplifications in Scope 2013-04-26 21:13:54 +02:00
josdejong
d038477f69 Fixed a few issues such that math.js works on IE6-8 too. 2013-04-22 21:53:10 +02:00
josdejong
4914084e3f Removed Range from the function comments 2013-04-14 21:16:30 +02:00