jos
ab1b83a2f6
Remove generated files from repo, make tests independent from generated files
2019-05-12 15:14:13 +02:00
jos
9950857a87
Fix lint error
2019-05-08 22:25:37 +02:00
Harry Sarson
6fe56d5471
Drop node 6 ( #1494 )
...
* Drop node 6
node 6 is no longer support by node. Also add node 12 to CI.
* add test for high precision sin
2019-05-08 22:22:05 +02:00
jos
427c39c33b
Created ES5 and ES6 entry points
2019-04-28 20:56:08 +02:00
jos
f4d4180cea
Move all entry files under ./src/entry
2019-04-24 10:48:01 +02:00
jos
99da53da0e
Flatten everything in a mathjs instance to make it consistent with the ES6 exports. Create deprecation warnings for the old classes and functions
2019-02-07 21:24:51 +01:00
jos
5dd0a9ba9c
Get bundle working (with lazy loading)
2019-01-02 10:03:05 +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
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
575346d71e
Updated history
2018-07-07 13:08:49 +02:00
jos
0583771e4e
Cleanup unused variables and imports
2018-06-13 17:25:51 +02:00
jos
0513898a4b
Fix using new for side effects
2018-06-13 16:31:18 +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
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
1ddbf18cef
Fix some more failing unit tests on browsers (part V)
2018-06-06 10:56:54 +02:00
jos
a19ebaca1c
More fixes for unite tests on IE11 and Edge (part IV)
2018-06-06 10:21:54 +02:00
jos
ee008d992e
Fixes failing unit tests on IE11/Edge
2018-06-04 21:19:10 +02:00
jos
0abdfbe590
Upgraded dependencies for complex.js and fraction.js (see #1100 )
2018-05-07 21:16:07 +02:00
jos
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
jos
e10dd5bce5
Refactored x && x.isBigNumber === true into type.isBigNumber(x)
2017-08-12 11:54:53 +02:00
jos
bbfa7d51df
Fixed #484 , #555 : inaccuracy of math.sinh. Also using ES6 Math functions when available
2016-04-03 13:47:57 +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
e075ed776e
Refactored all trigonometric functions to using decimal.js. Still awaiting decimal.js v5.0.5 for a bug fix.
2016-02-21 12:55:45 +01:00
jos
73cb353260
Refactored bignumber implementations of acos, acosh, asinh, atan, atan2, atanh, cosh, sinh, tanh, cbrt
2016-02-14 22:23:18 +01:00
jos
c558cf496e
Fixed all broken unit tests
2016-02-14 21:51:37 +01:00
jos
fc5cefde5a
Fixed two unit tests failing on node v0.10 and v0.12
2016-02-13 14:12:12 +01:00
Eric
34f991949d
Added support for complex units
2015-11-28 20:09:22 +00:00
jos
b5d3547914
Extended trigo, logical, relational functions with support for Units with BigNumber/Fraction value. (Many failing unit tests!)
2015-11-28 11:35:52 +01:00
jos
667139f439
Fixed a bug in functions sin and cos, which gave wrong results for BigNumber integer values around multiples of tau (i.e. sin(bignumber(7))).
2015-10-09 09:32:05 +02:00
jos
0eb9b5b119
Implemented a new configuration option predictable, which can be set to true in order to ensure predictable function output types.
2015-05-23 21:00:08 +02:00
rjbaucells
586b93bcf3
atan2 updates
2015-05-03 23:39:06 -04:00
rjbaucells
fa24a92b24
atan2 updates - partial
2015-05-03 23:36:05 -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
f70cad6346
Refactored acot, acsc, asec, atan, atan2, cot, csc, sec, sin, tan to typed-functions
2015-03-22 13:44:43 +01:00
jos
dd9954b995
Refactored acos, acosh, acoth, acsch, asech, asin, asinh, atanh, cos, cosh, coth, csch, sech, sinh, tanh to typed-functions.
2015-03-11 09:51:25 +01:00
Favian Contreras
b761e4e94f
Adjusted strange behavior of created pi constructors (i.e. replacing them).
2015-03-01 21:59:44 -08:00
Favian Contreras
1fb2ab8f74
Added BigNumber functionality for atan2, with tests.
2015-03-01 03:35:19 -08:00
Favian Contreras
4067586d7d
Now numbers from BigNumber trig calls use the default constructor rather than create a new one each time. Now all trig functions can have arguments with higher precisions.
2015-02-26 12:31:38 -08:00