127 Commits

Author SHA1 Message Date
jos
b92cd833eb Refactored the constants into factories 2018-11-24 20:59:21 +01:00
jos
942218f0e1 Refactory typed into a regular factory function without special registrations. Remove most listeners. 2018-11-24 18:19:18 +01:00
jos
c7e0d211b7 All functions use plain object config properties, and use a copy of the config (finalize them) 2018-11-21 21:09:20 +01:00
jos
9750beb841 Cleanup redundant local variables 2018-11-21 18:18:10 +01:00
jos
19275e5eaa Moved all toTex properties to latex util file 2018-11-21 18:08:21 +01:00
jos
0d93f45dfd Many functions in place in mainAll 2018-11-09 17:39:35 +01:00
jos
493bfa9a0c Enable lazy loading again 2018-11-09 14:37:55 +01:00
jos
b0db2fc4ab Renamed scope to math again (prevent confusion) 2018-11-09 14:23:11 +01:00
jos
4c35d62158 Refactor the last files with commonjs 2018-11-09 14:07:14 +01:00
jos
7a48d972ce Refactored all statistics functions. Renamed var to variance 2018-11-09 12:33:13 +01:00
jos
027b1dd308 Cleanup fixme's that are resolved 2018-11-09 11:53:19 +01:00
jos
77c6291331 Refactored all logical, bitwise, and relational functions 2018-11-09 11:51:27 +01:00
jos
d7ed170ba5 Converted all function transforms, expression functions, and embedded docs 2018-11-09 11:16:55 +01:00
jos
a0c8a40507 Refactor constants 2018-11-08 15:51:05 +01:00
jos
9faf91f697 Convert all data types, converted all algebra functions. Fixes in order of importing factories. 2018-11-08 15:02:18 +01:00
jos
75b18b103c Slim down dependencies on DenseMatrix and SparseMatrix 2018-11-07 17:36:45 +01:00
jos
2d7a407ee2 Create mainAll.js. Change algorithm functions to be internal factory functions (not injected). Convert more functions and data types. 2018-11-07 16:43:06 +01:00
jos
2fd6cbd568 Converted matrix classes. Fixes in dependency resolving/ordering. 2018-11-07 12:38:00 +01:00
jos
b9fb67483a Converted all matrix algorithm util functions and some arithmetic functions 2018-11-06 11:30:55 +01:00
jos
f6b524a966 Use object destructuring in factory function callback. Rename typeof to typeOf. Only pass dependencies in scope to factory function. 2018-11-06 09:17:21 +01:00
jos
c1a8004a12 - Created a util function factory
- Implemented resolving dependencies
- Converted the first few factory functions
2018-11-05 17:27:42 +01:00
jos
9800f25b35 Reorganized utils functions and refactored to ES6 import/export 2018-10-31 19:58:33 +01:00
jos
a9484f969f Remove index.js file in src/utils/ 2018-10-31 15:54:01 +01:00
jos
e3211a7efc Move all is* functions like isComplex into is.js 2018-10-31 15:28:51 +01:00
Eric Mansfield
0ce87a9920 Fixed unit base recognition and formatting for user-defined units (#1287) 2018-10-23 19:29:21 +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
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
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
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
Ben Weinshel
650cf86006 change decimaljs to use es6 version 2018-07-13 14:00:28 -05:00
jos
b44ce1477a Fixed many functions (for example add and subtract) not working with matrices having a datatype defined 2018-07-08 21:11:41 +02:00
jos
6301801145 Add benchmark to test numeric matrices vs generic matrices 2018-07-08 20:54:10 +02:00
gap
d15498715d Improve debugging support
When this error is encountered in the field, I see it via honeybadger, but I have none of the context about what unit it was called in, and what unit it was being converted to. Help the debugging by adding some info to the exception. I'm not entirely sure that 'toString' is what I want here - perhaps others in the community can help make that the right expression?
2018-06-16 14:22:21 -05:00
ssaket
886b291fc3 modified the error log 2018-06-14 22:53:51 +05:30
ssaket
9bf6a30332 fixed lint issues 2018-06-14 20:27:53 +05:30
ssaket
f473064768 Extend the factory function math.complex() to support math.complex({abs: ..., arg: ..}) 2018-06-14 18:46:28 +05:30
jos
e844004cbf Removed redundant escape characters 2018-06-13 21:15:10 +02:00
jos
600cfb403a Fix return statement should not contain assignment 2018-06-13 17:37:27 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
b7edef2d18 Fixed inconsistent curly braces of cde blocks 2018-06-13 16:59:43 +02:00
jos
f1ce473457 Consistend camel case naming of variables and functions 2018-06-13 16:09:51 +02:00
jos
1f0a37a0cb Split initialized 'const' declarations into multiple statements 2018-06-13 15:31:37 +02:00
jos
b6b36bfd9b Use strict equality checks everywhere (=== and !==) 2018-06-13 15:02:21 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
c2777c856b Fixed linting issues "Unexpected template string expression" 2018-06-12 21:18:45 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
35329d7db4 Move lib to src 2018-06-06 14:37:39 +02:00