429 Commits

Author SHA1 Message Date
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
Eric
a218ea419e Moved duplicate code to separate function 2016-04-23 13:34:15 -06:00
Eric
d2494408ef Unitless units are now converted to numeric values when predictable:false 2016-04-19 15:52:25 -06:00
jos
5acdd961c3 Fixed #631: unit aliases weeks, months, and years where missing 2016-03-31 08:22:28 +02:00
stu blair
7bcae661b2 Add prefixes to moles
* Enables units like 'nanomoles'
2016-03-14 14:24:56 -07:00
Jos de Jong
ebd1c11ee6 Merge pull request #596 from hgupta9/develop
Add kip unit
2016-03-05 10:12:19 +01:00
hgupta9
13231cf90d spaces 2016-03-05 12:31:01 +05:30
hgupta9
f86d3d8a9e add kip unit 2016-03-05 12:28:54 +05:30
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
f4b794100e Replaced tabs with spaces 2016-03-03 20:29:08 +01:00
jos
e2a3878ba9 Moved functions format and print to section string 2016-03-03 20:17:41 +01:00
jos
c02b58e8b0 Merge remote-tracking branch 'origin/develop' into develop 2016-03-03 19:38:09 +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
hgupta9
953b84fc3e new unit aliases 2016-03-02 18:44:34 +05:30
hgupta9
45a37ba731 class-wise API and new units 2016-03-02 18:30:55 +05:30
jos
fb141fb885 Merge branch 'decimal_v5' into develop
Conflicts:
	HISTORY.md
	test/function/trigonometry/cot.test.js
2016-02-27 11:39:56 +01:00
jos
bd6db88fe5 Merge remote-tracking branch 'origin/develop' into develop 2016-02-27 11:37:23 +01:00
jos
4d1cd06285 Implemented new AssignmentNode and everything around it. Changed matrices not to clone elements when getting/setting a subset 2016-02-26 15:30:17 +01:00
jos
94986762fb Merge branch 'develop' into feature/objectsupport
Conflicts:
	HISTORY.md
2016-02-24 08:58:01 +01:00
jos
a3ed081cb8 Fixed angle units deg, rad, grad, cycle, arcsec, and arcmin not being defined as BigNumbers when configuring to use BigNumbers 2016-02-21 15:06:21 +01:00