298 Commits

Author SHA1 Message Date
jos
68b5e3ffe6 Released v5.2.0 2018-05-02 10:05:16 +02:00
Jos de Jong
04442daf52
Merge branch 'develop' into develop 2018-04-17 20:08:52 +02:00
jos
35dd854d16 Fixed #1082: implemented support for unit plurals decades, centuries, and millennia 2018-04-17 20:02:15 +02:00
Eric Mansfield
2fcec34c9a Fixed year/decade and wrote test for checking in future 2018-04-15 12:59:49 -06:00
jos
7fefa33d84 Fixed #1077: Serialization/deserialization to JSON with reviver not being supported by nodes 2018-04-04 22:09:43 +02:00
jos
21f2d46784 Fixed #1072: Added support for long and short prefixes for the unit bar 2018-04-04 11:35:18 +02:00
jos
b00e0b7460 Fixed #1061: math.unit not accepting input like 1/s 2018-03-17 14:01:29 +01:00
jos
bf3f62b564 Upgraded to typed-function@1.0.0 2018-02-20 20:59:05 +01:00
jos
99ab11b234 Dropped constant uninitialized 2018-02-04 13:09:09 +01:00
jos
4469f6bd0c Remove support for implicit conversion of null to 0. See #830. 2018-01-23 20:26:38 +01:00
jos
2c1b8f2f05 Fixed #749: Changed rad, deg, and grad to have short prefixes, and introduced radian, degree, and gradian and their plurals having long prefixes 2018-01-23 14:18:26 +01:00
jos
e45a00ce05 Fixed #929: FibonacciHeap.isEmpty returning wrong result 2017-08-21 20:17:07 +02:00
jos
fa01e993af Refactored x && x.isMatrix === true into type.isMatrix(x), same with isDenseMatrix and isSparseMatrix 2017-08-12 13:24:39 +02:00
jos
6d418b9b61 Refactored x && x.isFraction === true into type.isFraction(x) 2017-08-12 12:05:11 +02:00
jos
e10dd5bce5 Refactored x && x.isBigNumber === true into type.isBigNumber(x) 2017-08-12 11:54:53 +02:00
Alexander Beyn
27ad919287 Use a different unit, since length squared may have been affected by other tests. 2017-08-10 02:57:35 -07:00
Alexander Beyn
8af981ff03 Simplify units before returning numeric value 2017-07-23 14:02:33 -07:00
Jos de Jong
777b347178 Merge pull request #852 from gulfaraz/complex_comparision
support to compare complex numbers #837
2017-06-05 17:01:39 +02:00
Gulfaraz Yasin
f42f7feffc static implementation of complex comparision 2017-06-05 11:58:27 +05:30
ericman314
e96cad0370 Corrects round-off errors in splitUnit 2017-06-04 22:18:43 -06:00
Gulfaraz Yasin
eda65d2228 used different approach for comparing complex numbers - resolves #837 2017-06-04 22:29:55 +05:30
ericman314
d24b945cb1 Added Unit.prototype.toSI 2017-03-29 08:46:34 -06:00
ericman314
abc19f663e Added tests for type/matrix/SparseMatrix.js 2017-02-27 20:54:10 -07:00
Pat Grasso
a4a111ceac Merge branch 'matrix.reshape' into develop 2017-02-24 11:04:25 -05:00
Pat Grasso
4cca0bf6e4 Add reshape() to Matrix types + test
This allows for one to call `reshape()` directly from an instance of
DenseMatrix (default behavior modifies in-place).
2017-02-24 11:02:43 -05:00
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
Eric
0044105bd7 Unit tests 2016-08-06 13:04:51 -06:00
Eric
c57534986d Added unit tests 2016-08-06 12:48:25 -06:00
Eric
b0b607d967 Finished docs 2016-07-27 23:50:49 -06:00
Eric
49378e1891 Finished bug fixes and added tests 2016-07-27 00:15:46 -06:00
Eric
efaa989cad Update API to accept objects and create multiple units 2016-07-19 00:30:57 -06:00
Eric
b7978dee23 Added Unit.createUnits and createUnits function, and tests. 2016-07-13 00:29:14 -06:00
jos
e9eda030ee Fixed matrix.subset mutating the replacement matrix when unsqueezing it 2016-04-26 09:11:59 +02:00
Eric
d2494408ef Unitless units are now converted to numeric values when predictable:false 2016-04-19 15:52:25 -06:00
jos
0cd4352856 Added automatic conversions from boolean and null to Fraction and conversions from Fraction to Complex 2016-03-14 21:24:29 +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
4ea2542941 Extended math.fraction with support for BigNumber, extended math.bignumber with support for Fraction 2016-03-03 19:24:24 +01:00
jos
94986762fb Merge branch 'develop' into feature/objectsupport
Conflicts:
	HISTORY.md
2016-02-24 08:58:01 +01:00
Robert Eisele
cb653ab42e Fixed parse tests 2016-02-11 04:28:09 +01:00
jos
6e1521d2a4 Use EPSILON of math.js and update on changes in config of math.js 2016-02-09 09:27:45 +01:00
jos
196c7175a3 Fixed a few more failing unit tests (related to fromPolar) 2016-02-09 09:17:55 +01:00
Robert Eisele
e6d4e40d7c Changed some tests to match new requirements 2016-02-07 14:57:02 +01:00
Robert Eisele
fcfd43a218 Added complex.js 2016-01-29 01:56:06 +01:00
jos
61f6ab0667 Merge branch 'develop' into feature/objectsupport
Conflicts:
	HISTORY.md
2016-01-03 19:49:06 +01:00
jos
2adf01e548 Getting/setting object properties working (still needs a refactoring step) 2016-01-02 15:16:12 +01:00
Jos de Jong
ed729478de lib/type/matrix/MatrixIndex.js 2015-12-24 16:01:26 +00:00
Jos de Jong
02a2bbe9fb Merge pull request #515 from ericman314/complex-units
Added support for complex units
2015-12-24 16:11:15 +01:00
Eric
a14b8b7a68 Added VA, VAR, and custom logic to convert between them. 2015-12-24 05:45:13 +00:00
jos
90a96027b3 Merge branch 'develop' into feature/objectsupport 2015-12-05 13:18:17 +01:00
jos
931736658d Added support for getting/setting object properties to Index and math.subset 2015-12-04 09:53:35 +01:00