198 Commits

Author SHA1 Message Date
jos
6baf6f09e1 Fix #1326: non-ascii character in print.js 2018-11-20 21:15:05 +01:00
Jos de Jong
2bd8829eb0
Fixed a typo in the docs of sign (see #1325) 2018-11-15 20:03:24 +01:00
Sathish-kumar-Subramani
3cbe1e05ef add util function hasNumericValue (#1303)
* add util function hasNumericValue

* hasNumericValue - add Number wrapper object. add more test cases.

* hasNumericValue - add test case to check if string with number, surrounded by whitespace is valid.
2018-11-03 10:08:45 +01:00
jos
216c1cd480 Publish v5.2.3 2018-10-30 20:21:16 +01:00
jos
5b6863e364 Fixed #1304: function pow not supporting inputs pow(Unit, BigNumber) 2018-10-30 20:13:15 +01:00
Eric Mansfield
aadb63ef3b Bugfix for bignumber divided by unit (#1270)
* Bugfix for bignumber divided by unit

* Expanded out numeric.js, improved divideScalar.js

* Minor comments
2018-10-05 20:53:49 +02:00
greenkeeper[bot]
c5971b371a Update standard to the latest version 🚀 (#1226)
* chore(package): update standard to version 12.0.0

* update to new lint version with --fix

I believe this mainly adds whitespace to `{}`'s.

* Replace assert.equal with assert.strictEqual

This breaks a lot of tests which I will endevour to fix in the next
commits.

* Fix most errors due to assert.strictEquals

Some instances of `strictEquals` are replaced by `deepEquals`.
`toString` has been used to make some string comparisions explicit.
Tests will still fail untill #1236 and #1237 are fixed.

* Fix assertion erros due to -0

With node 10, assert.strictEqual no longer considers `0 === -0`.
I missed these first time round as I was using node 8.

* Put toString correct side of bracket

I was converting the constructor to a string rather
than the result of the computation. Oops.

* Fixed #1236: quantileSeq has inconsistant return

* Update package-lock

* Fixed #1237: norm sometimes returning a complex number instead of number

* Fix cli tests

* More changes for standardjs, and fixes in unit tests
2018-09-08 16:33:58 +02:00
jos
9b530aa597 Fixed #1222: a typo in the docs of subset. Updated history 2018-08-25 13:06:24 +02:00
jos
56a52f6dfd Fix unit tests broken on Nodejs 6 and 8 (no proper NaN assertions) 2018-08-21 21:27:11 +02:00
jos
b6ab40cf88 Fixed #1214: median and other functions not neatly handling NaN 2018-08-21 21:16:15 +02:00
jos
9b2d2d4611 Release v5.1.0 2018-08-12 21:35:20 +02:00
Jason Shin
c4662ab3bb Implemented function getMatrixDataType (#1172)
* getMatrixDataType implemented

* implementing the last feedback ;)

* refactor

* hiding getArrayDataType from public API
2018-08-12 18:23:04 +02:00
jos
eff54bd069 Refactored globalOptions into passing argument options everywhere (see #1173) 2018-08-03 16:34:07 +02:00
jos
e296fdcfe6 Refactored globalOptions into argument options everywhere (see #1173) 2018-08-03 16:32:42 +02:00
jos
391ce47eb3 Describe options in simplify docs (see #1173). Updated history.md. 2018-08-03 16:10:24 +02:00
Paulo Buchsbaum
443d42a7fc Bugfixes in rationalize, extended simplify with new options see #1173
Fix of bug fixes in `rationalize.js`, also changing  `simplify.js` and `simplifyConstant.js` and more  2 bugs in `simplify.js` and `simplifyconstant.js` in order to be possible passing in `Travis` test. 

**Bugs in `simplifyConstant.js` and   `simplify.js`**

1. `simplifyConstant.js` - I've changed `new ConstantNode(stringNumber, 'number')` to `new ConstantNode(number)`

1.  `simplify.js` - Due to problems with a  number node with  string type,  I've added `!isNaN(node.value)))` in number type test condition 

**Bugs in `rationalize.js`**

3.   I've fixed  negative power exponents and decimals coefficients troubles. The decimals coefficients problem has led to the need to add a new feature in `simplify.js ` and `simplifyConstant.js` (next topic)

**New feature in `simplify.js` and `simplifyConstant.js`**

4.  New rule type (string), whose valid values are in `listCommStrings` new variable. The only string rule accepted so far is to turn off exact fraction conversion in `simplifyConstant.js`
2018-08-03 15:58:45 +02:00
Jos de Jong
d711cb1132
Fixed a typo in an example 2018-07-28 16:57:05 +02:00
Jos de Jong
6abe31803e
Insert zero width white spaces to prevent the table from getting too wide (see #1176) 2018-07-19 21:11:45 +02:00
Honeybar
a13f0ca7c6
style fix 2018-07-15 11:54:11 -07:00
Honeybar
4fb547cb7e
Delete productrange.js 2018-07-15 11:48:34 -07:00
Honeybar
f27ed3bb28
style fix 2018-07-15 11:47:38 -07:00
Honeybar
9ae26197c8
change filename and optimizing division by 2 2018-07-15 11:43:16 -07:00
Honeybar
45fde8b348
style fix 2018-07-15 00:35:44 -07:00
Honeybar
126bfbff6b
improving speed of factorial function 2018-07-14 23:40:12 -07:00
Honeybar
996922c46e
remove productBig function 2018-07-14 21:19:15 -07:00
Honeybar
77bd559b19
improving factorial function
speed up factorial function for number
2018-07-14 21:17:05 -07:00
Honeybar
3d35d858b8
improving factorial function
improving speed of bignumber and number
2018-07-14 20:35:32 -07:00
Honeybar
16ed3b8820
Improving factorial function
use divide and conquer to improve factorial for both number and bignumber
2018-07-14 19:43:19 -07:00
jos
b29e83dcac Updated docs and history (see #1147, #1163) 2018-07-14 11:16:11 +02:00
jos
8e18a2bd0a Document rationalize in the Algebra section of the docs 2018-07-14 11:06:11 +02:00
Daniel Kostro
4e7bf85fbc docs: add link to lup in qr 2018-07-08 14:33:21 +02:00
Daniel Kostro
f396f2d3fa fix some broken links 2018-07-08 10:08:32 +02:00
jos
c3827d7411 Fixed #1137: simplify unnecessarily replacing implicit multiplication with explicit multiplication 2018-07-06 22:17:43 +02:00
jos
a9b9ed029e Merge branch 'develop' into fix/simplify_implicit_multiplication 2018-07-06 21:00:40 +02:00
jos
995c4fbb65 Make linter happy 2018-07-04 21:10:57 +02:00
jos
0d93fff878 Fixed #1146: rationalize throwing exceptions for some input with decimals 2018-07-04 21:06:55 +02:00
jos
06dda6fc95 Fix keeping implicit multiplication in simplify (WIP) 2018-07-01 15:10:43 +02:00
jos
88263c47c7 Woohoo fixed the last lint errors 2018-06-13 21:51:09 +02:00
jos
e844004cbf Removed redundant escape characters 2018-06-13 21:15:10 +02:00
jos
b0ec2d4739 Fixed undefined variables/globals 2018-06-13 18:09:19 +02:00
jos
4254b7413f Dropped support for (non-primitive) instances of Number, Boolean, and String from functions clone and typeof 2018-06-13 17:56:18 +02:00
jos
600cfb403a Fix return statement should not contain assignment 2018-06-13 17:37:27 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
b7edef2d18 Fixed inconsistent curly braces of cde blocks 2018-06-13 16:59:43 +02:00
jos
4507f90fd7 Fixed lower case naming of DenseMatrix 2018-06-13 16:18:21 +02:00
jos
c2518dcf60 Fixed lower case naming of MatrixIndex 2018-06-13 16:17:06 +02:00
jos
f1ce473457 Consistend camel case naming of variables and functions 2018-06-13 16:09:51 +02:00
jos
b1777e3cf9 Fixed mixing || and && in expressions 2018-06-13 15:38:57 +02:00
jos
1f0a37a0cb Split initialized 'const' declarations into multiple statements 2018-06-13 15:31:37 +02:00
jos
b6b36bfd9b Use strict equality checks everywhere (=== and !==) 2018-06-13 15:02:21 +02:00