345 Commits

Author SHA1 Message Date
jos
d9deed993d Fixed #1418: missing whitespace when stringifying an expression containing "not" 2019-02-27 17:49:35 +01:00
jos
70cbc3ec30 Replace http urls with https where supported 2019-02-27 13:08:42 +01:00
jos
6c700d12a2 Publish v5.5.0 2019-02-20 17:10:03 +01:00
jos
7d00987a3f Fix #1404: inconsistent rounding of negative numbers 2019-02-20 16:54:10 +01:00
jos
69acb4f42a Fix #1401: bug in map and forEach of SparseMatrix not handling unordered indexes correctly 2019-02-20 16:32:28 +01:00
jos
ec848b7624 Improve docs of hasNumericValue 2019-02-09 21:55:28 +01:00
jos
049f80248d Add embedded docs for hasNumericValue 2019-02-09 21:55:04 +01:00
Jack Mason
e8b8a36aab Separating Binary Prefixes (#1390)
* added BINARY_LONG_SI, BINARY_LONG_IEC, BINARY_SHORT_SI and BINARY_SHORT_IEC prefixes

* use Object.assign to make more succinct
2019-01-28 20:44:27 +01:00
jos
f084bdf5db Publish v5.4.2 2019-01-25 22:29:20 +01:00
jos
420446452b Fixed a bug the methods map, forEach, traverse, and transform
of `FunctionNode`
2019-01-25 22:27:59 +01:00
Eric Mansfield
aa68442238 Bignumber formatter fix (#1387)
* Fixed unit base recognition and formatting for user-defined units

* Fix for high precision bignumber formatting
2019-01-21 21:14:29 +01:00
Rian McGuire
00d6101da3 Fix incorrect LaTeX output of RelationalNodes (#1383)
The parameters were being output using toString(), rather than toTex().
2019-01-16 15:03:07 +01:00
jos
ec0f9bd715 Publish v5.4.1 2019-01-10 22:07:03 +01:00
Maximilian
6c661f609f Update min.js
change maximum to minimum
2019-01-10 12:26:15 +00:00
jos
0721626422 Fix #1378: negative bignumbers not formatted correctly 2019-01-08 20:27:59 +01:00
Albert Emil
87aaff6fd1 Fixed small typo in typed.md (#1375)
* Update typed.md

Change a minor typo in the parameters table (description for `signatures`).

* Update typed.js
2019-01-08 20:19:39 +01:00
jos
088f84521c Publish v5.4.0 2018-12-09 13:15:33 +01:00
bnlcas
e45c8805b3 Add axis for sum request 1244 (#1310)
* enable sum function to take an argument of dimension for a matrix fulfilling issue #1244

* added sum along a dimension to the unit test coverage for sum

* added information about sum along a dimension to the markdown

* fixed typo in error message

* made formatting chagnes for linter

* add sum to transformed functions
2018-12-09 13:09:36 +01:00
Gold Holk
2032a9d126 Fix object literal enable multiple lines (#1328) (#1349)
* Allow object literal expression be multiple lines

* Add test for multiple lines object literal
2018-12-06 19:37:57 +01:00
Eric Mansfield
6c03139ac8 Immutable units (#1344)
* Fixed unit base recognition and formatting for user-defined units

* Removed side effects from Unit.format()

* minor fix
2018-12-05 10:11:52 +01:00
jos
ae1708d89c Publish v5.3.1 2018-12-03 19:48:27 +01:00
Eric Mansfield
92c58d92d0 Fix prefix tosi (#1340)
* Fixed unit base recognition and formatting for user-defined units

* Fixes prefix when calling Unit.toSI

* trailing space
2018-12-03 19:43:43 +01:00
jos
638ed7ec83 Publish v5.3.0 2018-11-29 20:15:40 +01:00
dkenul
30e1bfc9d2 Fix #1337: function format precision 0 bug (#1338) 2018-11-29 20:08:41 +01:00
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
Max Bruckner
e09e1040c5 bitNot: Fix incorrect tilde in LaTeX output (#1302) 2018-10-29 21:25:49 +01:00
jos
4d8cc3f895 Publish v5.2.2 2018-10-23 21:57:42 +02:00
Eric Mansfield
0ce87a9920 Fixed unit base recognition and formatting for user-defined units (#1287) 2018-10-23 19:29:21 +02:00
jos
397b4f1882 Merge remote-tracking branch 'origin/develop' into develop
# Conflicts:
#	package-lock.json
2018-10-18 20:14:42 +02:00
jos
bf3e184e24 Release v5.2.1 2018-10-18 20:14:24 +02:00
Eric Mansfield
fd083274f7 Fix unit rod (#1280) 2018-10-16 20:37:36 +02:00
jos
a715786690 Release v5.2.0 2018-10-05 21:25:21 +02: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
Eric Mansfield
d23d8c71a4 Chained conditionals (#1267)
* Minimally working

* Added tests, toString

* Added tests for evaluation

* Minor changes

* Added a line in the docs about chained conditionals

* Documentation, replacing var and let with const
2018-10-04 20:26:39 +02:00
Eric Mansfield
574c3b3428 Allow dimensionless units (#1251)
* Allow dimensionless units

* Fixed double quotes

* Fixed deepEqual

* FIxed for real this time
2018-09-15 21:09:24 +02:00
jos
8cab3f2bb0 Release v5.1.2 2018-09-09 13:52:51 +02:00
Harry Sarson
5750a18454 Upgrade to babel 7 (#1234) 2018-09-08 19:34:18 +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
0ed6a25165 Release v5.1.1 2018-08-21 21:41:56 +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
jean-emmanuel
710ed1e58f Add support for single quotes strings 2018-08-04 10:27:10 +02:00
jos
eff54bd069 Refactored globalOptions into passing argument options everywhere (see #1173) 2018-08-03 16:34:07 +02:00