jos
11b4c03460
Remove support for calling a function returned by a function, parse as implicit multiplication instead. See #1035
2018-02-03 21:52:18 +01:00
Eric Mansfield
090f4c920f
Added 'number/number (', and tests
2018-02-03 09:44:30 -07:00
Eric Mansfield
17a4e33ae2
Added tests
2018-02-02 21:14:33 -07:00
jos
a11dfa9bcc
Merge branch 'v4' into v4_binary_operator_node
2018-01-31 14:23:34 +01:00
jos
8f25ee7df0
Updated unit test in ConstantNode
2018-01-31 11:32:00 +01:00
jos
ece963bcdd
Merge branch 'develop' into v4
...
# Conflicts:
# lib/expression/node/ConstantNode.js
2018-01-31 11:28:14 +01:00
jos
82b41e696a
- Implemented OperatorNode.isUnary and OperatorNode.isBinary.
...
- Explicit checks for number of arguments everywhere working with `OperatorNode` and `FunctionNode`.
- Fixed #1014 : derivative silently ignoring additional arguments.
2018-01-31 11:00:39 +01:00
Max Bruckner
9126130794
toTex: Escape special characters in strings
2018-01-31 02:54:24 +01:00
jos
0b6c0c13f7
Merge branch 'v4' into v4_constant_node
...
# Conflicts:
# HISTORY.md
2018-01-27 16:58:17 +01:00
jos
5efbb25da8
Merge branch 'develop' into v4
...
# Conflicts:
# HISTORY.md
2018-01-27 16:57:24 +01:00
Harry Sarson
332ecf3d5d
adds failing test when implicit product is mapped
2018-01-27 14:21:36 +00:00
jos
4fcc9d231a
Added a few more unit tests for ConstantNode
2018-01-25 20:29:43 +01:00
Jos de Jong
17eeb7c449
Merge pull request #1026 from FSMaxB/v4_tex_fraction
...
ConstantNode: Add Fraction specific latex output.
2018-01-25 20:26:36 +01:00
jos
02d7d592e4
Merged util function types.type into math.typeof (see #1023 )
2018-01-25 20:21:22 +01:00
Max Bruckner
4a7e956242
ConstantNode: Add Fraction specific latex output.
2018-01-25 20:14:06 +01:00
jos
cec05b59f9
Changed options lower and upper in function math.format to lowerExp and upperExp, see #676
2018-01-24 15:57:38 +01:00
jos
879e00aecd
Change default precision to undefined for BigNumber formatting too. See #676
2018-01-24 14:44:36 +01:00
jos
0406b93fc6
fixed notation in function math.format no longer rounds to zero digits when no precision is specified: it leaves the digits as is. See #676 .
2018-01-24 14:27:38 +01:00
jos
f26e5cea03
Improved error messages for statistical functions
2018-01-24 11:52:49 +01:00
jos
087f53d854
Merge branch 'v4' into v4_constant_node
...
# Conflicts:
# HISTORY.md
2018-01-23 20:27:16 +01:00
jos
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
jos
b9c30ebcc7
Updated some docs
2018-01-23 16:43:44 +01:00
jos
326c9fb0de
Fixed #680 : compare strings by their numerical value instead of alphabetical order
2018-01-23 15:34:49 +01:00
jos
2c1b8f2f05
Fixed #749 : Changed rad, deg, and grad to have short prefixes, and introduced radian, degree, and gradian and their plurals having long prefixes
2018-01-23 14:18:26 +01:00
jos
3f3d50f7a0
Fixed #833 : the constants true, false, null, undefined, NaN, Infinity, and uninitialized are now parsed as ConstantNodes instead of SymbolNodes in the expression parser
2018-01-23 13:55:57 +01:00
jos
924299c42b
Changed ConstantNode(valueStr, valueType) to ConstantNode(value) (breaking change)
2018-01-23 12:08:29 +01:00
jos
8b5396baad
Removed the old expression compiler (which uses eval)
2018-01-23 09:19:11 +01:00
jos
1192bb6bbc
Implemented compile without eval (see #1019 )
2018-01-21 18:13:27 +01:00
jos
3af55ededa
Merge branch 'simplify2' into develop
2018-01-17 12:16:05 +01:00
Karl Lew
c4b555c36f
#1018 simplifyCore ParenthesisNode
2018-01-16 09:06:24 -08:00
jos
8724ae0ae5
Fixed #1013 : simplify wrongly simplifing some expressions containing unary minus, like 0 - -x
2018-01-13 14:37:27 +01:00
Jos de Jong
4504c3cc2a
Merge pull request #1003 from HarrySarson/3-arg-derivative
...
Improves derivative for 3 argument nodes. Closes #1002
2018-01-13 12:32:56 +01:00
Joel Hoover
6e6d0e37b1
Handle error in simplifyConstants when a function has all numeric arguments but is not itself defined
2018-01-08 01:13:14 -05:00
Joel Hoover
77dcd5abe9
Do not let simplifyConstants binarize functions with more than two arguments
2018-01-08 00:42:26 -05:00
Jos de Jong
9002e3b6eb
Merge pull request #1001 from joelhoover/simplify-improvement
...
Added rule to simplify that allows for combining of like terms in embedded quantities
2018-01-06 20:07:01 +01:00
Harry Sarson
05e6de2fd9
adds constant node checking with 3+ args
2018-01-04 14:25:05 +00:00
Harry Sarson
59e4c4ca97
derivative correctly handles '+' and '*' with three args
2018-01-04 13:42:00 +00:00
Joel Hoover
97098adad7
Added rule to simplify that allows for combining of like terms in embedded quantities
2018-01-02 01:02:19 -05:00
Jos de Jong
817ed3e6be
Merge pull request #996 from ovk/bignum-geometry
...
Added BigNumber support for distance() and intersect() functions
2017-12-29 09:46:53 +01:00
jos
67eeaea740
Merge branch 'simplify2' into develop
2017-12-28 17:08:46 +01:00
Karl Lew
f1d0beb252
fix for #998 unary minus bug
2017-12-26 15:34:11 -08:00
alik
4c842de7c6
Added BigNumber support for distance() and intersect() functions
2017-12-24 18:28:21 -05:00
jos
7df52c1d1a
Fixed #983 : pickRandom returning an array instead of single value when input was an array with just one value. Clarified docs.
2017-12-09 20:42:08 +01:00
Jos de Jong
e4ea1eb2aa
Merge pull request #981 from jeffreyshen19/master
...
Added a test for ln(x) derivative
2017-12-05 20:49:23 +01:00
jeffreyshen19
8bbed26a2b
added a test for ln(x) derivative
2017-12-05 00:06:10 -05:00
paulobuchsbaum
6a63afb52b
Small fix and and a new test
...
I've included one more expression in the test batch
2017-12-03 12:50:39 -02:00
paulobuchsbaum
d0a13eaaa9
Rationalize Package
...
Rationalize.js, Rationalize.test.js and index.js changed.
2017-11-27 17:16:21 -02:00
ericman314
a2922641d3
Matrix exponential
...
Implementation of the matrix exponential with unit tests.
NOT tested with sparse matrices or with complex-valued matrices.
2017-11-22 22:28:34 -07:00
jos
a60f3c8d9d
Fixed a security issue where forbidden properties like constructor could be replaced by using unicode characters when creating an object
2017-11-18 20:11:48 +01:00
jos
8d2d48d81b
Fixed a security issue in typed-function allowing arbitrary code execution
2017-11-18 19:39:30 +01:00