1402 Commits

Author SHA1 Message Date
Eric
ec8ab2d86d Added base property to createUnit to help user-defined units to be simplified easier 2016-07-19 00:58:46 -06:00
Eric
efaa989cad Update API to accept objects and create multiple units 2016-07-19 00:30:57 -06:00
Eric
6182eb4f35 Fixed small bug when create units with aliases 2016-07-13 19:51:34 -06:00
Eric
b7978dee23 Added Unit.createUnits and createUnits function, and tests. 2016-07-13 00:29:14 -06:00
jos
1588b0ebe0 Released version 3.3.0 2016-07-05 21:06:04 +02:00
jos
4162108fb4 Added expression parser docs for isNaN 2016-07-05 20:22:56 +02:00
Max Bruckner
c1760298fb New function 'isNaN' 2016-06-20 20:24:26 +02:00
jos
730a10749e FunctionAssignmentNode creates a TypedFunction 2016-05-22 14:25:48 +02:00
jos
b016385fe0 Fixed #665: functions map, forEach, and filter now invoke callbacks which are a typed-function with the correct number of arguments 2016-05-18 22:10:34 +02:00
jos
5edecb56c8 Removed the check on the number of arguments from functions defined in the expression parser (see #665) 2016-05-18 21:08:40 +02:00
jos
7511d4288d Released v3.2.1 2016-04-26 20:08:05 +02:00
jos
e9eda030ee Fixed matrix.subset mutating the replacement matrix when unsqueezing it 2016-04-26 09:11:59 +02:00
Eric
a218ea419e Moved duplicate code to separate function 2016-04-23 13:34:15 -06:00
Eric
d2494408ef Unitless units are now converted to numeric values when predictable:false 2016-04-19 15:52:25 -06:00
jos
b4d3c89574 Released v3.2.0 2016-04-16 10:22:55 +02:00
jos
66716819a7 Fixed #644: implemented method Parser.getAll() to retrieve all defined variables 2016-04-16 09:55:48 +02:00
jos
cb4a1a98cb Fixed #641: Bug in expression parser parsing implicit multiplication with wrong precedence in specific cases 2016-04-16 09:43:24 +02:00
jos
b2066e53f6 Replaced toTex definitions using the default toTex template with "undefined" and a comment (see #636) 2016-04-15 11:00:03 +02:00
jos
8068f4afa8 Fixed #636: More strict toTex templates, reckon with number of arguments 2016-04-11 21:31:15 +02:00
jos
b60fa54d43 Fixed #645: Added documentation about engineering notation of function math.format 2016-04-11 20:28:47 +02:00
jos
2127047948 Extended callback example of math.format (see #628) 2016-04-05 09:23:26 +02:00
jos
391d687138 Released v3.1.4 2016-04-03 19:48:24 +02:00
jos
bfc60ec199 Improved docs on math.format 2016-04-03 19:41:31 +02:00
jos
508e39ca2c Only allow operator in to be parsed as unit 2016-04-03 14:09:46 +02:00
jos
5b682d6040 Fixed #625: Unit in (inch) not always working due to ambiguity with
the operator `a in b` (alias of `a to b`)
2016-04-03 14:06:43 +02:00
jos
bbfa7d51df Fixed #484, #555: inaccuracy of math.sinh. Also using ES6 Math functions when available 2016-04-03 13:47:57 +02:00
jos
8b39e1b336 Fixed #629: expression parser throws an error when passing a number with decimal exponent instead of parsing them as implicit multiplication 2016-04-03 12:46:58 +02:00
jos
26e1e26555 Fixed #635: Node.toString options where not passed to function arguments 2016-04-03 11:31:08 +02:00
jos
924a8e480f Fixed #632: problem with escaped backslashes at the end of strings 2016-04-03 11:17:06 +02:00
jos
5acdd961c3 Fixed #631: unit aliases weeks, months, and years where missing 2016-03-31 08:22:28 +02:00
jos
f47b22cde5 Released v3.1.3 (fixed broken bundle) 2016-03-24 22:31:11 +01:00
jos
41fc3a73d1 Released v3.1.2 2016-03-24 21:46:28 +01:00
jos
59950de6ed Released v3.1.1 2016-03-24 21:31:33 +01:00
jos
b3c1d63133 Throw an error when functions min, max, mean, or median are invoked with multiple matrices as arguments (see #598) 2016-03-24 21:22:33 +01:00
jos
ab454c0750 Fixed #623: nthRoot of zero with a negative root returned 0 instead of Infinity 2016-03-24 20:25:14 +01:00
jos
77736f554b Fixed #621: a bug in parsing implicit multiplications like (2)(3)+4 2016-03-22 20:23:07 +01:00
jos
d4fd1d5159 Released version 3.1.0 2016-03-19 20:33:11 +01:00
jos
784c0f2b1b Updated history, one update for implicit multiplication 2016-03-19 20:25:50 +01:00
jos
d9e7ced69c Merge remote-tracking branch 'origin/develop' into develop 2016-03-19 20:22:38 +01:00
jos
c8d41fc5b4 Restored support for implicit multiplications like (2+3)(4+5) 2016-03-19 20:16:54 +01:00
Max Bruckner
c72071dfb7 OperatorNode: toTex support for implicit multiplication
Use the option `implicit` with the value `hide` to not show the
multiplication sign for implicit multiplication. This is the default.
Use `show` otherwise.
2016-03-19 19:09:14 +01:00
Max Bruckner
65817dbf03 OperatorNode: toString support for implicit multiplication
Use the option `implicit` with the value `hide` to not show the
multiplication sign for implicit multiplication. This is the default.
Use `show` otherwise.
2016-03-19 18:48:54 +01:00
Max Bruckner
876740e123 fix: ParenthesisNode doesn't print parentheses with empty options
When the options to toString or toTex where an empty object,
ParenthesisNode didn't fall back to the default 'keep' behavior.
2016-03-19 18:38:58 +01:00
Max Bruckner
6f39ec5da9 OperatorNode: new 'implicit' attribute to mark implicit multiplication
This also modifies the parser to set this attribute
2016-03-19 14:25:58 +01:00
jos
aaa153d9e9 Some minor fixes in the docs 2016-03-19 13:15:01 +01:00
jos
e84af96cf4 Fixed #609: error in the example code for function parse 2016-03-19 09:42:02 +01:00
stu blair
7bcae661b2 Add prefixes to moles
* Enables units like 'nanomoles'
2016-03-14 14:24:56 -07:00
jos
0cd4352856 Added automatic conversions from boolean and null to Fraction and conversions from Fraction to Complex 2016-03-14 21:24:29 +01:00
jos
1089cd4d2a Fixed #597: restored support for implicit multiplication like 2(3+4) 2016-03-12 13:30:47 +01:00
Jos de Jong
ebd1c11ee6 Merge pull request #596 from hgupta9/develop
Add kip unit
2016-03-05 10:12:19 +01:00