79 Commits

Author SHA1 Message Date
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
firepick1 (localhost)
dccec26cb1 #916 simplifyCore loses custom functions 2017-08-08 20:48:24 -07:00
jos
1f2d4f3296 Replaced another occurrence of ES6 backtick 2017-08-06 12:00:51 +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
8c92deb1c3 Added derivative of abs 2017-05-10 17:24:15 +09:30
Jos de Jong
71221b75df Merge pull request #840 from tetslee/fix838
Fixed simplify to recognize named constants
2017-05-09 20:12:28 +02:00
Timothy Lee
02f01adf3c Added support for BigNumbers to simplify 2017-05-09 13:20:32 +09:30
Timothy Lee
6f2b5efaac Disallow implicitly converting a number to a fraction that is not an exact representation 2017-05-08 15:58:06 +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
158adc1861 Added support for more constants in simplify 2017-05-08 12:56:56 +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
Timothy Lee
9e2491e96f Fixed simplify to recognize named constants 2017-05-05 13:44:21 +09:30
Jos de Jong
43fc3f5cd1 Merge pull request #829 from HarrySarson/qr-implementation
Changes to QR function
2017-04-17 20:24:04 +02:00
Harry Sarson
815ce4601d updated calculation of norm of vector 2017-04-16 20:09:31 +01:00
Jos de Jong
e02b9520ea Merge pull request #819 from HarrySarson/qr-implementation
Qr implementation
2017-04-15 20:26:04 +02:00
Harry Sarson
24888263c0 Correct the return value of qr example. 2017-04-13 12:09:02 +01:00
tim
613e7012a1 simplify - remove addtion of zero 2017-04-13 19:06:39 +09:30
Harry Sarson
dbd1311ba4 implemented qr decomposition 2017-03-31 18:18:02 +01:00
Jos de Jong
c879acf9d3 Merge pull request #780 from ericman314/differentiation_consistent_api
Fixed derivative of exp(x)
2017-01-22 15:44:57 +01:00
jos
d722473b53 Fixed simplify not handling non-existing functions correctly 2017-01-22 15:44:14 +01:00
ericman314
b440955297 Added unit test for exp(x) 2017-01-22 07:41:02 -07:00
jos
f4b7855a84 Docs, examples, some fixes 2017-01-22 15:30:18 +01:00
jos
db67f4cb84 Removed method Node.simplify() (use function simplify instead) 2017-01-22 13:42:19 +01:00
jos
0ae4dce80b Updated docs of simplify and derivative 2017-01-21 20:29:10 +01:00
jos
6a61dd6d3c Implemented option {simplify: boolean} for function derivative 2017-01-21 20:10:10 +01:00
jos
93540e52c4 Refactored unit tests of derivative so they are easier to read/maintain 2017-01-21 17:07:21 +01:00
jos
71ae3ea076 Consistent API for both derivative and simplify (dropped transform) 2017-01-20 21:43:40 +01:00
tetslee
f4ece9c777 Fixed derivative tests that were broken by the simplifier changes. 2016-11-07 17:12:29 +10:30
tetslee
5a75a8c222 Simplify terms and factors seperated by inverse operators.
The simplify algorithm now applies rules one at a time.
2016-11-07 11:20:28 +10:30
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
jos
dffd6c5f5f Merge remote-tracking branch 'origin/algebraic_differentiation' into algebraic_differentiation 2015-12-05 13:18:04 +01:00
jos
bc6c861a36 Merge branch 'develop' into algebraic_differentiation 2015-12-05 13:17:50 +01:00
Favian Contreras
4b929d772a Added cbrt. Added a small test case and comment as well. 2015-09-21 02:48:30 -07:00
Favian Contreras
449f13f45e Removed the math object from the parse and eval calls. 2015-09-19 21:44:53 -07:00
Favian Contreras
48bb64af4e Added some comments to the derivative file. Added some test cases as well (explicitly test partial derivatives and pure JS usage). 2015-09-19 21:24:56 -07:00
Jos de Jong
08ccb24c06 Merge pull request #440 from rjbaucells/develop
Fix for issue #437 (Possible bug in lusolve)
2015-08-28 20:45:49 +02:00
Rogelio J. Baucells
06c3cd31b5 Issue #437 fix 2015-08-27 21:07:13 -04:00
jos
a39d726a18 Merged algebraic_differentiation, fixed issues with function transforms attached to factory functions 2015-07-29 21:24:34 +02:00
jos
a388f399ca Merge branch 'algebraic_differentiation' of https://github.com/BigFav/mathjs into algebraic_differentiation
Conflicts:
	lib/core/typed.js
2015-07-29 20:57:50 +02:00
Favian Contreras
98040be7e1 Shortened up some of the more verbose test cases for which simplifications are possible. Used config.number on ConstantNodes that I missed on my original commits. 2015-07-25 07:29:17 -07:00
jos
396d951c95 Halfway implementing lazy loading 2015-07-21 20:49:52 +02:00
Favian Contreras
6fbe2238cd Added a test case for nthRoot where the root is variable. Now handles a variable base log, and added a test case. Adjusted the chain rule to be after the switch statement (saves ~1640 bytes and is more modular). 2015-07-21 04:34:06 -07:00
Favian Contreras
3591b7597d Added test cases for trig functions, C^x, FunctionAssignmentNode, and some error cases. 2015-06-13 09:42:40 -07:00
Favian Contreras
d800172062 Test derivitive function. Currently using a mix of written out Nodes, and parse to test against. 2015-05-31 02:50:14 -07:00
Rogelio J. Baucells
8fb42ee11b fix tests 2015-05-29 21:34:29 -04:00