24 Commits

Author SHA1 Message Date
Jos de Jong
1f05a35d68
chore: convert CJS files to ESM (#3204) 2024-05-22 08:46:14 +02:00
jos
ecaa30c05e Update urls of examples to point to root instead of index.js 2019-04-24 10:50:54 +02:00
jos
6081360d6a Merged develop into modular_architecture 2019-04-13 16:51:51 +02:00
jos
70cbc3ec30 Replace http urls with https where supported 2019-02-27 13:08:42 +01:00
jos
2d15621a3b Fixes in examples (WIP) 2019-02-11 21:38:53 +01:00
jos
078f1dd69f Renamed methods .eval to .evaluate, updated all docs and examples accordingly 2019-01-16 10:11:32 +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
dff0a57219 Some fixes in examples 2018-06-16 14:32:47 +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
633445c077 Explain that the examples loads math.js in node.js (see #613) 2016-03-18 21:41:40 +01:00
jos
3a1dea00b0 Function typeof no longer returns lower case names, but now returns lower case names for primitives (like number, boolean, string), and upper-camel-case for non-primitives (like Array, Complex, Function). 2015-05-22 21:05:35 +02:00
jos
096a5f3a55 Upgraded to typed-function v0.8.3. Implemented support for merging typed-functions via math.import. Added option silent for math.import. 2015-05-16 11:33:58 +02:00
jos
18d9b8942e Dropped support for module names from function import 2015-05-01 23:00:58 +02:00
jos
8f9995cd37 Changed default value of the option wrap of function math.import to false, and fixed a but in math.import 2014-08-16 17:56:13 +02:00
jos
3cc93fd0b9 Minor tweaks in the examples 2014-07-01 10:28:31 +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
f1ea498927 Added some more unit tests 2014-03-15 15:27:05 +01:00
josdejong
ac41566de8 Wrapped all bignumber functions available in the bignumber.js library 2013-11-16 17:49:16 +01:00
josdejong
d2e55a0132 Math.js must be instantiated now, static calls are no longer supported 2013-10-26 15:00:06 +02:00
Sebastien Piquemal
1c85b5f7ed fixed examples 2013-08-14 15:54:24 +04:00
josdejong
c5edb419d8 Moved the library builds math.js and math.min.js to subfolder dist 2013-08-04 14:39:42 +02:00
josdejong
19b507b9f0 Refactored all code to 2 space indentation 2013-08-04 14:07:47 +02:00
josdejong
7c650e22f6 Added and renamed an example 2013-05-31 22:29:25 +02:00