Harry Sarson
29aeb4700f
ensure all files end with trailing \n
2018-04-27 21:41:02 +01:00
Harry Sarson
af417d8384
add use strict to the top of a bunch of files
2018-04-27 21:28:28 +01: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
7f6f997fa3
Merge branch 'develop' into v4
2018-02-25 14:00:41 +01:00
jos
3059e1b94f
Fixed truncation of some docs when generating markdown (see #1040 )
2018-02-21 13:22:08 +01:00
jos
99ab11b234
Dropped constant uninitialized
2018-02-04 13:09:09 +01:00
jos
087f53d854
Merge branch 'v4' into v4_constant_node
...
# Conflicts:
# HISTORY.md
2018-01-23 20:27:16 +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
3f3d50f7a0
Fixed #833 : the constants true, false, null, undefined, NaN, Infinity, and uninitialized are now parsed as ConstantNodes instead of SymbolNodes in the expression parser
2018-01-23 13:55:57 +01:00
jos
e45a00ce05
Fixed #929 : FibonacciHeap.isEmpty returning wrong result
2017-08-21 20:17:07 +02:00
jos
967e65cceb
Refactored usage of properties .isNode, .isSymbolNode, etc. into using functions like type.isNode(x) for security
2017-08-12 14:38:03 +02:00
jos
949261f92b
Refactored usage of properties .isRange, .isIndex, .isResultSet, and .isHelp for their (safe) function equivalents
2017-08-12 13:31:09 +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
9e0cc3fb61
Refactored x && x.isUnit === true into type.isUnit(x)
2017-08-12 12:07:03 +02:00
jos
e10dd5bce5
Refactored x && x.isBigNumber === true into type.isBigNumber(x)
2017-08-12 11:54:53 +02:00
jos
26e70a4acd
Refactored x.isComplex === true into type.isComplex(x)
2017-08-12 11:32:40 +02:00
Jos de Jong
a65420c0a5
Merge pull request #902 from AlexanderBeyn/simplify-units-in-toNumeric
...
Simplify units before returning numeric value
2017-08-12 10:01:17 +02:00
Alexander Beyn
bcf781907a
Simplify units on "other", since it may have been replaced.
2017-08-03 01:55:54 -07:00
Vincent Lee
57b8199ef9
Update Complex.js
2017-07-28 08:48:29 +08:00
Vincent Lee
77768a195a
Fixed the regex for imaginary number
...
I think you are trying to match the '-' symbol in the imaginary number of complex number, but using /[\b-.]/ as regex instead of /[-]/, right?
2017-07-27 00:06:24 +08:00
Alexander Beyn
8af981ff03
Simplify units before returning numeric value
2017-07-23 14:02:33 -07:00
jos
b8b76cd5b7
Fixed #891 : using BigNumbers not working in browser environments
2017-07-05 21:42:37 +02:00
jos
96674094d6
Compare numeric types first by value, then by type
2017-06-30 10:02:26 +02:00
Jos de Jong
12a01706e9
Merge pull request #877 from pjhampton/pjhampton/units--fix-erg-def
...
Fixed erg (energy) definition.
2017-06-18 14:46:48 +02:00
PJ Hampton
332a2d4eb5
Fixed erg (energy) definition.
...
Removed package.json
update pr.
2017-06-17 23:59:13 +01: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
jos
64498eddd6
Fixed #861 : physical constants not available in the expression parser
2017-05-25 16:13:42 +02:00
jos
29d632f1d9
Fixed creating units with an alias not working within the expression parser
2017-05-12 13:28:13 +02:00
jos
41b0f5138b
Expose BASE_DIMENSIONS on Unit
2017-05-08 20:00:43 +02:00
jos
85ac1a0aa4
Some more security measures
2017-05-05 20:53:20 +02:00
jos
b90305992f
Merge remote-tracking branch 'origin/develop' into develop
2017-04-24 21:38:12 +02:00
Jos de Jong
692519e330
Fixed wrong formatting of complex NaN (see 804)
2017-04-24 08:39:36 +02:00
jos
c2c1888012
Fixed security vulnerabilities in math.subset
2017-04-22 13:58:26 +02:00
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
ericman314
37261395ac
Initial commit of SparseMatrix.reshape
2017-02-27 20:16:57 -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
Troy Alford
f6bb6faebe
Removing extraneous require('utils')
...
When packaging this library with `rollup.js` - there is a continual complaint about importing a "node built-in" `util`, which stems from this line in `Unit.js`. The line appears extraneous, however - so this PR simply removes it.
2017-01-28 17:10:32 -08:00
jos
b866ca3e48
Released v3.8.0
2016-11-18 19:41:40 +01:00
jos
e6a049abe7
Fixed #749 : Units rad, deg, and grad can now have prefixes like millirad
2016-11-18 19:27:50 +01:00