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
jos
7152142661
Fixed #732 : Allow letter-like unicode characters like Ohm \u2126
2016-11-18 19:19:17 +01: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
Ekin Koc
7dc744f24f
Remove unnecessary logging
2016-09-11 02:32:43 +03:00
jos
4ca3c3997e
Released v3.4.0
2016-08-07 14:12:34 +02:00
Eric
0044105bd7
Unit tests
2016-08-06 13:04:51 -06:00
Eric
58e3247c27
Added splitUnit function
2016-08-06 12:31:49 -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
8334e4a6c8
More bug fixing
2016-07-26 23:04:52 -06:00
Eric
37538119aa
Working out more bugs
2016-07-26 22:51:43 -06:00
Eric
7c5ff021ed
Fixed bug with dimensions array having unknown number of items
2016-07-25 18:03:31 -06:00
Eric
ec8ab2d86d
Added base property to createUnit to help user-defined units to be simplified easier
2016-07-19 00:58:46 -06:00
Eric
efaa989cad
Update API to accept objects and create multiple units
2016-07-19 00:30:57 -06:00
Eric
6182eb4f35
Fixed small bug when create units with aliases
2016-07-13 19:51:34 -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