1280 Commits

Author SHA1 Message Date
Mathias Polligkeit
bd7f6edc24 remove test file for pickMultipleRandom 2016-07-06 23:18:33 +02:00
Mathias Polligkeit
c5e40b40ef add pickMultipleRandom function 2016-06-30 02:19:09 +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
e9eda030ee Fixed matrix.subset mutating the replacement matrix when unsqueezing it 2016-04-26 09:11:59 +02:00
Eric
d2494408ef Unitless units are now converted to numeric values when predictable:false 2016-04-19 15:52:25 -06: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
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
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
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
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
15aca5e4d0 Changed casing of the values of config options number and matrix to match the actual name of the classes. 2016-03-04 19:41:54 +01:00
jos
f4b794100e Replaced tabs with spaces 2016-03-03 20:29:08 +01:00
jos
126622337d Renamed section 'units' to 'unit' 2016-03-03 20:21:08 +01:00
jos
e2a3878ba9 Moved functions format and print to section string 2016-03-03 20:17:41 +01:00
jos
1dd3a0e492 Expression parser now allows assignments inside objects, indexes, and function arguments 2016-03-03 19:25:42 +01:00
jos
4ea2542941 Extended math.fraction with support for BigNumber, extended math.bignumber with support for Fraction 2016-03-03 19:24:24 +01:00
jos
41949b2253 Fixed IndexError not always providing a max property 2016-02-29 20:41:52 +01:00
jos
8db2867f4b Changed the default config value for epsilon from 1e-14 to 1e-12, see #561 2016-02-28 14:07:06 +01:00
jos
a1d91e0f84 Implemented nearly equal comparison for relational functions (equal, larger, smaller, etc.) when using BigNumbers 2016-02-28 14:03:40 +01:00
jos
fb141fb885 Merge branch 'decimal_v5' into develop
Conflicts:
	HISTORY.md
	test/function/trigonometry/cot.test.js
2016-02-27 11:39:56 +01:00
jos
a60a70e6b9 Store dot notation in IndexNode 2016-02-27 11:36:47 +01:00
jos
89e1238fed Implemented read-only name-properties for AccessorNode and AssignmentNode, improved the name property of FunctionNode 2016-02-27 11:17:34 +01:00
jos
2869c37af9 Renamed Index.ranges to Index.dimensions 2016-02-26 20:51:09 +01:00
jos
0d6e7521d3 More unit tests 2016-02-26 20:15:52 +01:00
jos
4d1cd06285 Implemented new AssignmentNode and everything around it. Changed matrices not to clone elements when getting/setting a subset 2016-02-26 15:30:17 +01:00
jos
9173fbd3b8 Large refactoring of nodes: AssignmentNode. UpdateNode, AccessorNode, IndexNode 2016-02-25 15:02:44 +01:00
jos
94986762fb Merge branch 'develop' into feature/objectsupport
Conflicts:
	HISTORY.md
2016-02-24 08:58:01 +01:00
jos
034b74c3f2 Removed redundant trigonometric util functions 2016-02-21 13:23:28 +01:00
jos
e075ed776e Refactored all trigonometric functions to using decimal.js. Still awaiting decimal.js v5.0.5 for a bug fix. 2016-02-21 12:55:45 +01:00
jos
c65e486e6e Updated to decimal.js v5.0.4 2016-02-14 22:32:10 +01:00
jos
73cb353260 Refactored bignumber implementations of acos, acosh, asinh, atan, atan2, atanh, cosh, sinh, tanh, cbrt 2016-02-14 22:23:18 +01:00
jos
c558cf496e Fixed all broken unit tests 2016-02-14 21:51:37 +01:00
jos
60cf4781e8 Upgraded to decimal.js v5. Replaced .constructor with .clone. Still lots of issues to fix 2016-02-13 15:48:54 +01:00
jos
fc5cefde5a Fixed two unit tests failing on node v0.10 and v0.12 2016-02-13 14:12:12 +01:00