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
jos
1583b455ca
Merge branch 'develop' into algebraic_differentiation
2017-01-20 11:18:05 +01: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
jos
c9591339b1
Throw an error for implicit conversion between BigNumber and Fraction (see #710 )
2016-11-05 19:44:04 +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
tetslee
12cdee2956
Merge branch 'algebraic_differentiation' into derivative
2016-10-25 13:06:37 +10:30
Pat Grasso
d2ae67cca3
erf(Infinity) should return 1, not NaN
...
Likewise, erf(-Infinity) should be -1. This is true for any really large
|x|...say, |x| > 2^53.
2016-10-20 15:54:02 -04:00
Pat Grasso
33ab725d53
Create spec for erf() and include test data
...
Values in `erf.values.json` come from python's `math.erf()`. Actual
values should be within 5e-16 of the expected values.
Test against real number, matrix, array, bignumber, boolean, and
null values.
2016-10-20 15:33:09 -04:00
Jos de Jong
cd12316ec8
Merge pull request #679 from woylie/master
...
add pickMultipleRandom function
2016-10-19 21:39:05 +02:00
Pat Grasso
b250ad0313
Change spec for output vector's shape for cross()
...
Depending on the input vectors' dimensions, either a 1-d vector or a 2-d
matrix should be returned.
2016-10-12 01:17:22 -04:00
patgrasso
a7f5bb27ef
Extend cross() to support n-d vectors. Closes #716
...
Squeeze arrays before attempting to cross them so that n-dimensional
vectors can be cross multiplied (as long as only one direction has a
series of 3 elements)
2016-09-25 21:22:40 -04:00
MathBunny
160b8b7d1f
Add tests for isPrime
2016-07-21 20:24:59 -04:00
Mathias Polligkeit
832f280196
rewrite pickRandom as typed function
2016-07-18 02:17:27 +02:00
Mathias Polligkeit
fe972bacf6
extend pickRandom function to allow multiple picks and weighted distribution, remove pickMultipleRandom
2016-07-16 17:55:38 +02:00
Mathias Polligkeit
f8cde43e0a
rewrite tests for extended pickRandom function
2016-07-16 15:07:49 +02:00
Mathias Polligkeit
1e50dcf523
new tests for pickRandom to cover multiple picks and weighted distributions
2016-07-06 23:19:27 +02:00
Mathias Polligkeit
bd7f6edc24
remove test file for pickMultipleRandom
2016-07-06 23:18:33 +02:00
Mathias Polligkeit
c5e40b40ef
add pickMultipleRandom function
2016-06-30 02:19:09 +02:00
Max Bruckner
c1760298fb
New function 'isNaN'
2016-06-20 20:24:26 +02:00
jos
b016385fe0
Fixed #665 : functions map, forEach, and filter now invoke callbacks which are a typed-function with the correct number of arguments
2016-05-18 22:10:34 +02:00
Eric
d2494408ef
Unitless units are now converted to numeric values when predictable:false
2016-04-19 15:52:25 -06:00
jos
bbfa7d51df
Fixed #484 , #555 : inaccuracy of math.sinh. Also using ES6 Math functions when available
2016-04-03 13:47:57 +02:00
jos
b3c1d63133
Throw an error when functions min, max, mean, or median are invoked with multiple matrices as arguments (see #598 )
2016-03-24 21:22:33 +01:00
jos
ab454c0750
Fixed #623 : nthRoot of zero with a negative root returned 0 instead of Infinity
2016-03-24 20:25:14 +01:00
Max Bruckner
c72071dfb7
OperatorNode: toTex support for implicit multiplication
...
Use the option `implicit` with the value `hide` to not show the
multiplication sign for implicit multiplication. This is the default.
Use `show` otherwise.
2016-03-19 19:09:14 +01:00
jos
15aca5e4d0
Changed casing of the values of config options number and matrix to match the actual name of the classes.
2016-03-04 19:41:54 +01:00
jos
f4b794100e
Replaced tabs with spaces
2016-03-03 20:29:08 +01:00
jos
126622337d
Renamed section 'units' to 'unit'
2016-03-03 20:21:08 +01:00
jos
e2a3878ba9
Moved functions format and print to section string
2016-03-03 20:17:41 +01:00
jos
4ea2542941
Extended math.fraction with support for BigNumber, extended math.bignumber with support for Fraction
2016-03-03 19:24:24 +01:00
jos
a1d91e0f84
Implemented nearly equal comparison for relational functions (equal, larger, smaller, etc.) when using BigNumbers
2016-02-28 14:03:40 +01:00
jos
fb141fb885
Merge branch 'decimal_v5' into develop
...
Conflicts:
HISTORY.md
test/function/trigonometry/cot.test.js
2016-02-27 11:39:56 +01:00
jos
4d1cd06285
Implemented new AssignmentNode and everything around it. Changed matrices not to clone elements when getting/setting a subset
2016-02-26 15:30:17 +01:00
jos
94986762fb
Merge branch 'develop' into feature/objectsupport
...
Conflicts:
HISTORY.md
2016-02-24 08:58:01 +01:00
jos
e075ed776e
Refactored all trigonometric functions to using decimal.js. Still awaiting decimal.js v5.0.5 for a bug fix.
2016-02-21 12:55:45 +01:00
jos
73cb353260
Refactored bignumber implementations of acos, acosh, asinh, atan, atan2, atanh, cosh, sinh, tanh, cbrt
2016-02-14 22:23:18 +01:00
jos
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +01:00
jos
fc5cefde5a
Fixed two unit tests failing on node v0.10 and v0.12
2016-02-13 14:12:12 +01:00
jos
e0bba8ff88
Merge branch 'develop' into complex
...
Conflicts:
lib/core/import.js
2016-02-13 13:52:48 +01:00