jos
a2ae756fd1
Remove semicolons
2018-10-31 21:18:51 +01:00
jos
247aeabffa
Refactor all unit tests to ES6 import/export
2018-10-31 21:17:23 +01: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
jos
b0ec2d4739
Fixed undefined variables/globals
2018-06-13 18:09:19 +02:00
jos
1f0a37a0cb
Split initialized 'const' declarations into multiple statements
2018-06-13 15:31:37 +02:00
jos
17f07ec098
Fixed incompatibility with v4 (index.js file)
2018-06-13 14:02:50 +02:00
jos
b3b96749bf
Refactored var into const/let, and removed a lot of semicolons
2018-06-13 12:21:14 +02:00
jos
024b2a9e26
Fix most lint errors using npx standard --fix
2018-06-10 20:28:27 +02:00
jos
635cd0b574
Revert using /lib/ in tests, use /src/ again. Fixed coverage testing. WIP
2018-06-06 22:11:52 +02:00
jos
79071b5e4f
Fixed npm run test:browser not working (WIP)
2018-06-06 21:30:41 +02:00
jos
0c084b8e20
npm test working now
2018-06-06 15:36:36 +02: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
d81fe279cc
String input is now converted to numbers by default for all functions. Adding two strings will no longer concatenate them, but will convert the
...
strings to numbers and add them.
2015-05-19 22:18:40 +02:00
jos
811508906c
Refactored functions range, subset, concat.transform, map.transform, max.transform, mean.transform, min.transform, range.transform, subset.transform to typed-functions
2015-04-27 19:11:21 +02:00
Max Bruckner
8ad525b66e
util/latex: get rid of many unnecessary curly braces
2015-04-19 11:08:00 +02:00
Max Bruckner
7adf0ebc53
LaTeX tests for functions
2015-04-05 14:29:10 +02:00
jos
8a12c8e9bc
Fixed #200 : A new instanceof of math.js must now be created as math.create([options]) instead of math([options])
2014-08-03 21:42:12 +02:00
jos
7d84e4daf0
Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library.
2014-06-20 23:11:14 +02:00
josdejong
97cbb0093f
Moved errors to their own namespace and folder
2014-04-11 18:02:29 +02:00
josdejong
492d7f4c4f
Moved ArgumentsError from lib/type/ to lib/util/
2014-04-06 21:25:46 +02:00
josdejong
ad554ef1f7
Updates and fixes to work with a different BigNumber instance per math.js instance
2014-04-05 22:42:03 +02:00
josdejong
9ae103c394
More unit tests
2014-03-21 21:38:26 +01:00
josdejong
36c38982e5
ArgumentsError now extends Error instead of SyntaxError
2014-01-31 23:22:17 +01:00
josdejong
8e814cbc82
Implemented an argument includeEnd for function range (false by default)
2014-01-01 19:03:15 +01:00
josdejong
f2f1ae1f72
Renamed and flattened configuration settings
2013-12-07 11:39:45 +01:00
josdejong
77c3b48df1
Implemented bignumber support for function range
2013-11-27 13:06:46 +01:00
josdejong
3a4c1c5ef0
Internally renamed variable options to settings
2013-11-21 13:39:24 +01:00
josdejong
ea51c6c86c
math.options is no longer exposed as property
2013-11-21 10:37:04 +01:00
josdejong
d2e55a0132
Math.js must be instantiated now, static calls are no longer supported
2013-10-26 15:00:06 +02:00
josdejong
c8a289a08c
Removed unnecessary .js suffix in module require statements
2013-10-20 14:01:31 +02:00
josdejong
3c7174c764
Renamed options to math.options.format.precision and math.options.matrix.defaultType
2013-10-19 15:00:32 +02:00
josdejong
5481b0a663
Introduced an option math.options.matrix.default which can have values matrix (default) or array. This option is used by the functions eye, ones, range, and zeros, to determine the type of matrix output.
2013-10-01 20:37:28 +02:00
josdejong
7935546630
Removed type Range. function math.range now returns an expanded series
2013-08-17 13:42:57 +02:00