1388 Commits

Author SHA1 Message Date
Eric Mansfield
b254bc1be4 Merge pull request #958 from IvanVergiliev/simplify-exponentiation
Simplify nested exponentiations
2017-10-21 19:10:43 -06:00
jos
02b1478e6d Fixed #954: Functions add and multiply not working when passing three or more arrays or matrices 2017-10-18 19:58:31 +02:00
Ivan Vergiliev
9dde07ed11 Simplify nested exponentiations 2017-10-17 08:15:22 -07:00
jos
e033697001 Add unit tests against infinite recursive loops in simplify 2017-10-01 20:26:30 +02:00
jos
18dd595b83 Merge branch 'simplify2' into develop 2017-08-28 20:21:35 +02:00
firepick1 (localhost)
5b175d56a5 #934 unaryMinus simplifyCore 2017-08-28 06:35:40 -07:00
firepick1 (localhost)
4787237b31 #933 +unaryMinus to subtract 2017-08-24 20:18:06 -07:00
firepick1 (localhost)
827ab5dc28 Merge branch 'develop' into simplify2 2017-08-24 19:56:35 -07:00
jos
83e3591925 Fixed #930: function isNaN returning wrong result for complex numbers 2017-08-21 20:20:49 +02:00
jos
e45a00ce05 Fixed #929: FibonacciHeap.isEmpty returning wrong result 2017-08-21 20:17:07 +02:00
Jos de Jong
0b846a3726 Merge pull request #922 from josdejong/auto-implicit-fixes
Auto implicit fixes
2017-08-20 12:21:26 +02:00
jos
520d5f90c9 Merge branch 'simplify2' into develop 2017-08-19 14:18:41 +02:00
firepick1 (localhost)
52e29d6456 925 simplify(string, Array, Object) 2017-08-18 17:30:48 -07:00
Max Bruckner
b2857392bd OperatorNode: Fix implicit multiplication
Fixes implicit multiplication when parenthesis is 'auto' and operands
are ConstantNodes.

This is handled by detecting that case and printing parentheses for
ParenthesisNodes even though they normally wouldn't with parenthesis
set to 'auto'.
2017-08-13 20:57:41 +02:00
jos
1069a033e5 Added some unit tests 2017-08-12 19:54:21 +02: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
fa01e993af Refactored x && x.isMatrix === true into type.isMatrix(x), same with isDenseMatrix and isSparseMatrix 2017-08-12 13:24:39 +02:00
jos
6d418b9b61 Refactored x && x.isFraction === true into type.isFraction(x) 2017-08-12 12:05:11 +02:00
jos
e10dd5bce5 Refactored x && x.isBigNumber === true into type.isBigNumber(x) 2017-08-12 11:54:53 +02:00
jos
26e70a4acd Refactored x.isComplex === true into type.isComplex(x) 2017-08-12 11:32:40 +02:00
jos
12918725f1 Merge branch 'develop' into moreStrictTypeChecks 2017-08-12 11:15:11 +02:00
jos
a18f2068f3 Fixed toString of a parsed expression tree containing an immediately invoked function assignment not being wrapped in parenthesis 2017-08-12 11:03:19 +02:00
jos
54230e8dc9 Fixed #916 handle dynamic function calls in simplify 2017-08-12 10:39:51 +02:00
jos
797d226f7b Merge branch 'master' into develop 2017-08-12 10:09:24 +02:00
Jos de Jong
a65420c0a5 Merge pull request #902 from AlexanderBeyn/simplify-units-in-toNumeric
Simplify units before returning numeric value
2017-08-12 10:01:17 +02:00
Alexander Beyn
27ad919287 Use a different unit, since length squared may have been affected by other tests. 2017-08-10 02:57:35 -07:00
firepick1 (localhost)
dccec26cb1 #916 simplifyCore loses custom functions 2017-08-08 20:48:24 -07:00
jos
8c2f10a865 Fixed #915: No access to property "name" 2017-08-07 20:09:12 +02:00
jos
5092e982f9 Merge branch 'develop' into moreStrictTypeChecks 2017-08-06 14:13:11 +02:00
jos
1f2d4f3296 Replaced another occurrence of ES6 backtick 2017-08-06 12:00:51 +02:00
jos
601f1942c2 Replace ES6 functionality with ES5 2017-08-06 11:54:59 +02:00
jos
3e9f0d24f8 Implemented more strict type checks in typed-functions 2017-08-04 11:15:46 +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
jos
9666c16378 Fixed #846: Issues in the functions map, forEach, and filter when used in the expression parser 2017-07-29 14:05:27 +02:00
jos
eb5ec9cc26 Added some more unit tests 2017-07-29 10:52:43 +02:00
Alexander Beyn
8af981ff03 Simplify units before returning numeric value 2017-07-23 14:02:33 -07:00
Thomas Brierley
743854e1d4 Remove property ghosting tests (no longer restricted) 2017-07-14 13:10:46 +01:00
Thomas Brierley
e1749d2a0e Revert expression security test to original error 2017-07-14 13:10:18 +01:00
Thomas Brierley
ac002370bd Add test for ghosting custom properties 2017-07-12 16:36:06 +01:00
Thomas Brierley
fe0b993e72 Fix security test, fails on length first 2017-07-12 16:33:31 +01:00
jos
469e6bf3cf Fixed #895: added support for the dollar character $ in symbol names 2017-07-10 20:29:30 +02:00
Jos de Jong
69f3e882d7 Merge pull request #888 from ThomasBrierley/prototyped-scopes
Prototyped Scopes
2017-07-05 22:01:29 +02:00
Thomas Brierley
1dd67cd591 Fix undefined isSafeProperty test + comment 2017-07-04 20:03:06 +01:00
Thomas Brierley
7d6c583629 Add isSafeProperty unit tests 2017-07-04 19:43:05 +01:00
jos
485cb88866 Use getSafeProperty in help 2017-06-30 14:27:28 +02:00
jos
6bbff5f54f Improved natural sorting for numeric types, matrix types, and objects 2017-06-30 11:16:42 +02:00
jos
96674094d6 Compare numeric types first by value, then by type 2017-06-30 10:02:26 +02:00
Thomas Brierley
badc6efc1a Update tests for isSafe changes
+ Fix "calling Function via Object.assign" test. Now fails on accesing
"bind" first because new implementation is a bit more restrictive.

+ Fix "extend the class instance". Custom methods on instances are now
allowed and ghosting (overridding) is explicitly not.

+ Add ghosting tests for class instances and plain objects.
2017-06-29 15:53:49 +01:00