Harry Sarson
29aeb4700f
ensure all files end with trailing \n
2018-04-27 21:41:02 +01:00
jos
cb84036e8e
Changes according to feedback from Harry
2018-02-01 19:45:07 +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
jos
924299c42b
Changed ConstantNode(valueStr, valueType) to ConstantNode(value) (breaking change)
2018-01-23 12:08:29 +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
18f703beab
Some refactoring in isCommutative and isAssociative (see #1013 )
2018-01-13 20:56:59 +01:00
jos
8724ae0ae5
Fixed #1013 : simplify wrongly simplifing some expressions containing unary minus, like 0 - -x
2018-01-13 14:37:27 +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
Karl Lew
f1d0beb252
fix for #998 unary minus bug
2017-12-26 15:34:11 -08:00
firepick1 (localhost)
c765f3dcca
#958 exponent power rule
2017-10-21 19:23:21 -04:00
firepick1 (localhost)
5b175d56a5
#934 unaryMinus simplifyCore
2017-08-28 06:35:40 -07:00
firepick1 (localhost)
e9fa99983f
#933 nargs
2017-08-24 20:34:41 -07:00
firepick1 (localhost)
4787237b31
#933 +unaryMinus to subtract
2017-08-24 20:18:06 -07:00
jos
967e65cceb
Refactored usage of properties .isNode, .isSymbolNode, etc. into using functions like type.isNode(x) for security
2017-08-12 14:38:03 +02:00
jos
6d418b9b61
Refactored x && x.isFraction === true into type.isFraction(x)
2017-08-12 12:05:11 +02:00
jos
54230e8dc9
Fixed #916 handle dynamic function calls in simplify
2017-08-12 10:39:51 +02:00
firepick1 (localhost)
dccec26cb1
#916 simplifyCore loses custom functions
2017-08-08 20:48:24 -07:00
jos
3bb5412466
Replace ES6 backtick
2017-08-06 11:58:22 +02:00
jos
601f1942c2
Replace ES6 functionality with ES5
2017-08-06 11:54:59 +02:00
firepick1 (localhost)
53e64ee18d
resolve scope Node values
2017-08-02 13:39:55 -07:00
firepick1 (localhost)
709f1bc075
#907 simplify.resolve
2017-08-02 07:30:00 -07:00
firepick1 (localhost)
bd870d3545
simplifyCore() performance improvement
2017-08-01 11:45:06 -07:00
Timothy Lee
02f01adf3c
Added support for BigNumbers to simplify
2017-05-09 13:20:32 +09:30
Timothy Lee
82095ebc19
Revert "Changed multiply to only output Fractions when both arguments can be exactly represented as Fractions"
...
This reverts commit f3cb41864582b2dc8b07c07d4c22d6c313bcc114.
2017-05-08 15:57:19 +09:30
Timothy Lee
f3cb418645
Changed multiply to only output Fractions when both arguments can be exactly represented as Fractions
2017-05-05 16:30:37 +09:30
Timothy Lee
c47dee1d01
Stopped simplify from explicitly converting numbers to Fractions when they can't be expressed exactly.
...
It still will implicitly convert to inexact Fractions because of the conversions to Fractions in the typed-functions of binary operators.
2017-05-05 14:54:04 +09:30
jos
d722473b53
Fixed simplify not handling non-existing functions correctly
2017-01-22 15:44:14 +01:00
jos
f4b7855a84
Docs, examples, some fixes
2017-01-22 15:30:18 +01:00
jos
71ae3ea076
Consistent API for both derivative and simplify (dropped transform)
2017-01-20 21:43:40 +01:00
tetslee
23bf1031eb
Improved constant folding in simplify.
2016-11-04 18:02:42 +10:30
tetslee
67b69b49c5
Improvements to simplify(). Also changes to the way simplify and derivative are used.
2016-11-02 16:26:22 +10:30