812 Commits

Author SHA1 Message Date
Gulfaraz Yasin
275b09dce8 support to compare complex numbers #837 2017-05-10 19:05:49 +05: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
692519e330 Fixed wrong formatting of complex NaN (see 804) 2017-04-24 08:39:36 +02:00
Harry Sarson
a5692e1d0a Extension of pow function to support Infinite exponents. 2017-04-23 13:13:23 +01:00
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
Dzmitry Litskalau
a531715442 Fix xgcd for negative values 2017-03-06 18:28:13 +03:00
ericman314
9ada8c9a9c Added tests for function/matrix/reshape.test.js 2017-02-27 20:40:47 -07:00
Jos de Jong
fc2458a6c4 Merge pull request #799 from morsecodist/develop
Added Seeded Random Number Generation
2017-02-27 19:52:11 +01:00
morsecodist
9466b214aa Supported seeds of any type 2017-02-26 22:54:01 -05:00
morsecodist
9bfedf2921 Added and updated unit tests to new config option seeded rng 2017-02-24 15:21:17 -05:00
morsecodist
3d46e21ee5 Removed old seeded random number generator 2017-02-24 15:18:16 -05:00
Pat Grasso
fbb023e7e1 Small fix of names in reshape.test.js
Change some straggling instances of `resize` (reshape tests borrowed
heavily from resize).
2017-02-24 10:19:58 -05:00
Pat Grasso
8e01076ec9 Merge branch 'matrix.reshape' into develop 2017-02-24 10:12:20 -05:00
Pat Grasso
df83968ec7 Add spec for reshape() in test/function/matrix
This spec tests `reshape()` with more cases than the one in
test/utils/array.test.js, including various types.

Also, in `_reshape()`, throw a brand new `DimensionError` instead of
modifying the caught one (the error message does not change when other
attributes are modified, as it is computed when the error is created).
2017-02-24 10:05:42 -05:00
morsecodist
79010f381f Updated to use new seedrandom scheme 2017-02-21 16:46:07 -05:00
morsecodist
3b5e6a44d7 Added seedrandom unit tests 2017-02-21 16:35:03 -05:00
jos
41f4cd6078 Fixed #789: Math.js not supporting conversion of string to BigNumber, Fraction, or Complex number 2017-02-03 17:52:38 +01:00
jos
12c2444ead Merge branch 'differentiation_consistent_api' into develop
# Conflicts:
#	HISTORY.md
2017-01-22 20:03:09 +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
Adam Kelly
b564c20f19 Add Support for Complex Numbers in kron 2017-01-20 22:51:01 +00:00
jos
71ae3ea076 Consistent API for both derivative and simplify (dropped transform) 2017-01-20 21:43:40 +01:00
Adam Kelly
44515ba7ed Add support for 1D Vectors in math.kron 2017-01-20 18:09:42 +00:00
jos
1583b455ca Merge branch 'develop' into algebraic_differentiation 2017-01-20 11:18:05 +01:00
Adam Kelly
6e63a112a2 Add Kronecker Product (Direct / Tensor Product)
Adds Kronecker Product as math.kron(x, y);
2017-01-17 22:31:42 +00:00
Sebastian Ruhleder
fe52d51c0a Add median absolute deviation 2016-12-08 18:29:11 +01:00
jos
a168041374 Functions add and multiply now accept more than two arguments. See #739. 2016-11-18 15:06:37 +01:00
jos
f491873452 Merge branch 'develop' into algebraic_differentiation 2016-11-07 20:57:27 +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
Eric
feb834b040 Units no longer search for the best prefix if the current prefix results in a value approximately between 0.1 and 1000.
Adjusted unit tests.
2016-11-06 06:59:12 -07:00
jos
1ecfdf1a0e Implemented BigNumber support in function arg() 2016-11-05 19:52:22 +01:00