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
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
934ea83df7
Fixed linting issues "Expected consistent spacing"
2018-06-12 21:38:11 +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
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
Eric
34f991949d
Added support for complex units
2015-11-28 20:09:22 +00:00
jos
2e1d943595
Extended arithmetic functions with support for Units with BigNumber/Fraction value. (One failing unit test!)
2015-11-28 11:04:36 +01:00
jos
d15751b041
Fixed operations with mixed fractions and numbers be converted to numbers instead of fractions.
2015-07-28 20:48:55 +02:00
jos
ec3ad5461f
Added Fraction support for cube and square. Fixed operations on Fractions mutating the original fraction.
2015-05-12 21:26:51 +02:00
jos
44b2129740
Added Fraction support for abs, gcd, mod. Added a valueOf() method to Fraction
2015-05-12 13:25:05 +02:00
jos
73f2dc2601
Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide.
2015-05-12 11:42:57 +02:00
rjbaucells
6884de9803
test updates
2015-04-30 00:52:25 -04:00
Rogelio J. Baucells
5aff896e00
element wise operations
2015-04-29 17:54:17 -04:00
Rogelio J. Baucells
4347a3d16f
sparse arithmetic updates
2015-04-27 12:03:59 -04:00
jos
6e96d5a808
Merge branch 'develop' into v2
...
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
lib/function/arithmetic/abs.js
lib/function/probability/gamma.js
lib/version.js
package.json
2015-04-22 21:43:56 +02:00
Max Bruckner
8ad525b66e
util/latex: get rid of many unnecessary curly braces
2015-04-19 11:08:00 +02:00
jos
349e9845e8
Merge branch 'develop' into v2_merge
...
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
docs/reference/units.md
lib/version.js
package.json
test/function/construction/chain.test.js
test/function/matrix/det.test.js
test/function/matrix/transpose.test.js
test/function/utils/import.test.js
2015-04-13 21:42:43 +02:00
Max Bruckner
7adf0ebc53
LaTeX tests for functions
2015-04-05 14:29:10 +02:00
Jos de Jong
81e56601d2
Merge branch 'develop' into v2
2015-03-09 20:19:12 +00:00
jos
3b8eff0a7a
Fixed #291 : function format sometimes returning exponential notation when it should return a fixed notation.
2015-03-05 20:12:30 +01:00
jos
cdd7bb8a83
Updated to typed-function 0.6.2, fixing a couple of bugs. Conversion from BigNumber to Complex added.
2015-02-26 21:51:25 +01:00
jos
150add879a
Better error message on conversion of number to BigNumber when having more than 15 digits
2015-02-16 09:31:41 +01:00
jos
8edf472478
Upgraded to typed-function v0.6.1, more functions refactored.
2015-02-07 20:29:32 +01:00
jos
19c2024524
Halfway reworking more functions (lot of stuff is broken at this point)
2015-01-17 21:09:39 +01:00
jos
da306e26ed
Implemented support for null in all functions (see #205 )
2014-08-09 16:27:11 +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
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
f51f4454f5
More unit tests
2014-03-17 21:29:52 +01:00
josdejong
eca2326802
More unit tests
2014-03-01 21:35:55 +01:00
josdejong
9338e0a4ec
All arithmetic functions can now handle mixed complex numbers, big numbers, and units
2013-11-28 11:41:18 +01:00
josdejong
26c0332883
On mixed Number/BigNumber inputs, all operators now downgrade the inputs if Number is a fraction.
2013-11-23 10:28:42 +01:00
josdejong
52337e4b94
Integrating the bignumber.js library in math.js. This is awesome!
2013-11-16 14:34:35 +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
e61d2f965b
Fixes in the new function math.format(precision). Updated docs and tests.
2013-10-19 21:44:54 +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
2dc6ac6cdf
Implemented support for booleans in all relevant functions
2013-09-02 21:36:52 +02:00
josdejong
6273ad998f
Removed usage of math.eval from function unit tests
2013-08-31 10:53:14 +02:00
Sebastien Piquemal
a6b4ad7526
fixed tests
2013-08-14 15:43:32 +04:00
Sebastien Piquemal
aa0249d458
fixed npm install, changed src to lib
2013-08-14 15:00:12 +04:00
josdejong
aa471db411
Upperbound of range is now excluded
2013-08-09 22:09:46 +02:00
Sebastien Piquemal
1e7603488c
refactored refactored tests/functions/arithmetic
2013-08-08 15:31:37 +04:00
josdejong
8cc9ceb980
Changed all source files into node.js modules
2013-08-05 23:05:23 +02:00
josdejong
d9f34677b4
Renamed all test files to *.test.js
2013-08-04 14:46:22 +02:00