2496 Commits

Author SHA1 Message Date
jos
af551ff1cf Released v3.7.0 v3.7.0 2016-11-05 20:18:11 +01: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
jos
4306200c4c Implemented method Node.equals(other) for all nodes of the expression parser 2016-11-05 16:27:23 +01:00
jos
cc1a6925af Command Line Interface loads faster 2016-10-30 20:41:53 +01:00
jos
d76b3422fc Merge branch 'master' into develop 2016-10-26 21:03:53 +02:00
Jos de Jong
59df4f2640 Merge pull request #729 from woylie/patch-1
update contributor list
2016-10-26 21:02:38 +02:00
woylie
c0fcefacb0 update contributor list
Oh, vanity...
2016-10-26 00:23:47 +02:00
jos
de54684357 Update how to publish 2016-10-21 20:20:15 +02:00
jos
2b95c65a30 Released v3.6.0 v3.6.0 2016-10-21 20:10:11 +02:00
jos
4b458d1779 Removed redundant imports 2016-10-21 17:58:53 +02:00
jos
22508ed8eb Moved constants in erf to the bottom (doc generator picks the first comment from a function) 2016-10-21 17:57:39 +02:00
jos
20a571f38d Fixed #688: Describe allowed variable names in the docs 2016-10-21 16:50:51 +02:00
jos
064eb31381 Fixed #715: Parser now exposes test functions like isAlpha which can be replaced in order to adjust the allowed characters in variables names 2016-10-21 16:33:38 +02:00
jos
80c55add2a Parser not throwing an error for invalid implicit multiplications like -2 2 and 2^3 4 2016-10-21 15:23:20 +02:00
jos
aa7b5d2d1f Updated history 2016-10-21 13:00:10 +02:00
Jos de Jong
47b8f5f0ab Merge pull request #726 from patgrasso/develop
Implementation of erf()
2016-10-21 12:59:21 +02:00
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
a71cba9a7d Add TODO comments for future considerations
Specifically, implementation of erfi() (complex error function) and
precision when x is a bignumber.
2016-10-20 15:33:10 -04:00
Pat Grasso
57f082f64d Use internal sign() (Math.sign only in ES2015+) 2016-10-20 15:33:10 -04:00
Pat Grasso
ee41e35b5c Fix erf(bignumber) -> bignumber to return proper value
Note: The precision for the bignumber returned may not be accurate, as
the `erf()` approximation only guarantees precision to a certain degree.
2016-10-20 15:33:10 -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
Pat Grasso
80fd73c115 Update submodule index files to include erf 2016-10-20 15:33:09 -04:00
Pat Grasso
6ae793edea Implement erf(x) using W. J. Cody's approximation
Translate the Fortran77 implementation of W. J. Cody's "Rational
Chebyshev Approximations for the Error Function".
Place in new function subdirectory, `function/special`, because this
function doesn't seem to fit into any other category.
2016-10-20 15:33:09 -04:00
jos
427d8eac28 Updated history 2016-10-19 21:42:37 +02:00
Jos de Jong
cd12316ec8 Merge pull request #679 from woylie/master
add pickMultipleRandom function
2016-10-19 21:39:05 +02:00
Mathias Polligkeit
cf857a3a09 some more minor code format changes 2016-10-18 02:02:09 +02:00
Mathias Polligkeit
b5a9695746 code formatting 2016-10-18 01:45:06 +02:00
Mathias Polligkeit
78f0c942bd clean up distribution.js 2016-10-18 01:43:49 +02:00
Mathias Polligkeit
f81abbab25 add type validation 2016-10-18 01:43:19 +02:00
Mathias Polligkeit
239cabec37 Revert "add an intermediary typed function that will fail a test"
This reverts commit fc2b730e044d3ec5a93c010d789eac47768fccc2.
2016-10-18 01:27:18 +02:00
Mathias Polligkeit
94d102e758 Revert "add randomHelper function for duplicate logic of random/randomInt; fails"
This reverts commit c464010234c73144df142cdb6fb7d32d0533bdf3.
2016-10-18 01:27:13 +02:00
Mathias Polligkeit
bfcfeafd2e Revert "refactor distribution.js"
This reverts commit ed0df31293f92171c44d06d5bdc04d408b967402.
2016-10-18 01:25:08 +02:00
jos
92be10ab25 Updated history 2016-10-15 10:36:54 +02:00
jos
42fe492c3f Merge remote-tracking branch 'origin/develop' into develop 2016-10-15 10:35:46 +02:00
jos
95d0f444f3 Merge branch 'master' into develop 2016-10-15 10:35:41 +02:00
Jos de Jong
af6ede218d Merge pull request #717 from patgrasso/develop
Extend cross() to support n-d vectors
2016-10-15 10:35:13 +02:00
Jos de Jong
7cf0e132d9 Merge pull request #723 from adambutler/patch-1
Fix incorrect case
2016-10-15 10:32:31 +02:00
Adam Butler
9a6ea3203c Fix incorrect case 2016-10-13 16:00:17 +01:00
Pat Grasso
30ae9c071f Change dimensionality of vector returned by cross()
If one of the input vectors/matrices has a dimension greater than 1, the
output vector will be a 1x3 matrix. Otherwise, the result will be a flat
3-component vector. Closes #716
2016-10-12 01:20:59 -04: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
jos
84755ca968 Cleaned up unused imports 2016-10-02 14:37:52 +02:00
jos
b5652b99c9 Fixed a code example 2016-10-02 13:48:07 +02: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
jos
d6ce2cd332 Released v3.5.3 v3.5.3 2016-09-21 21:25:36 +02:00
jos
7742b36c5c Some more fixes regarding numbers ending with a decimal mark (like 2.). See #711. 2016-09-20 21:35:19 +02:00
jos
68c3475f6d Released v3.5.2 v3.5.2 2016-09-20 21:18:27 +02:00
jos
924694eeda Improved docs on transpose function (see #706) 2016-09-20 21:07:23 +02:00
jos
9199ae58ae Fixed #711: parser accepts numbers ending with a decimal mark again like 2.. 2016-09-20 21:02:28 +02:00
jos
d7d25e83c8 Released v3.5.1 v3.5.1 2016-09-12 20:25:53 +02:00