23 Commits

Author SHA1 Message Date
jos
ecaa30c05e Update urls of examples to point to root instead of index.js 2019-04-24 10:50:54 +02:00
jos
2d15621a3b Fixes in examples (WIP) 2019-02-11 21:38:53 +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
a7751f72a5 Update/fix examples where needed 2018-02-04 15:05:00 +01:00
Gulfaraz Yasin
7446181081 clean up 2017-06-05 17:20:28 +05:30
Gulfaraz Yasin
4e324ee502 reduced the examples of comparision operations 2017-05-14 13:31:04 +05:30
Gulfaraz Yasin
275b09dce8 support to compare complex numbers #837 2017-05-10 19:05:49 +05:30
jos
633445c077 Explain that the examples loads math.js in node.js (see #613) 2016-03-18 21:41:40 +01:00
Robert Eisele
fcfd43a218 Added complex.js 2016-01-29 01:56:06 +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
9d2ac66ca1 Added a section on implicit multiplication 2014-07-01 10:57:40 +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
jos
127f00cbfb Added example code for polar coordinates 2014-04-16 10:22:31 +02: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
34df0963ae Created a number of example files 2013-04-19 21:43:28 +02:00