Nick Ewing
859cfa208a
Replace recursive calls in typed-functions with this-style calls ( #1903 )
...
* Fix #1902 : typo in an example in the documentation
* Replace recursive calls in typed-functions with `this`-style calls
* Replace more recursive calls in typed-functions with `this`-style calls
* Refactor compareNatural to use this-style recursion
Co-authored-by: josdejong <wjosdejong@gmail.com>
2020-07-13 17:37:30 +02:00
jos
d8a4f3a00a
Update to standard@13.0.2
2019-07-20 13:46:31 +02:00
jos
41efed79d3
Fix #1473 : remove 'use strict' in every file
2019-05-26 20:21:18 +02:00
jos
6acadd71a0
Create number implementations of all functions in mainNumber.js
2019-03-06 21:49:30 +01:00
jos
c42844a5d8
Flatten all type.* dependencies
2019-01-30 13:47:45 +01:00
jos
016e10109d
Fix functions having the actual config values.
...
Fix classes not listening for changes in config.
Decouple creating classes from `core`.
2018-12-30 20:41:06 +01:00
jos
01a230a996
Add /* #__PURE__ */ everywhere to enable tree-shaking in webpack
2018-12-01 11:21:36 +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
19275e5eaa
Moved all toTex properties to latex util file
2018-11-21 18:08:21 +01:00
jos
ee4442b17a
Allow importing nested dependencies
2018-11-06 10:28:34 +01:00
jos
f6b524a966
Use object destructuring in factory function callback. Rename typeof to typeOf. Only pass dependencies in scope to factory function.
2018-11-06 09:17:21 +01:00
jos
c1a8004a12
- Created a util function factory
...
- Implemented resolving dependencies
- Converted the first few factory functions
2018-11-05 17:27:42 +01:00
jos
94e9668b4a
Refactor functions into ES6 import/export
2018-10-31 20:53:01 +01:00
jos
9800f25b35
Reorganized utils functions and refactored to ES6 import/export
2018-10-31 19:58:33 +01:00
jos
b3b96749bf
Refactored var into const/let, and removed a lot of semicolons
2018-06-13 12:21:14 +02:00
jos
c2777c856b
Fixed linting issues "Unexpected template string expression"
2018-06-12 21:18:45 +02:00
jos
024b2a9e26
Fix most lint errors using npx standard --fix
2018-06-10 20:28:27 +02:00
jos
35329d7db4
Move lib to src
2018-06-06 14:37:39 +02:00
Sebastien Piquemal
aa0249d458
fixed npm install, changed src to lib
2013-08-14 15:00:12 +04:00
josdejong
4b20d7cb88
Directly export prototypes as module.exports
2013-08-07 14:22:44 +02:00
josdejong
283e76e4e9
Packed all functions in a closure (makes them environment independent)
2013-08-07 14:12:07 +02:00
josdejong
fe06d514e0
Created shared module math.js for all functions (resolves circular references)
2013-08-06 21:50:15 +02:00
josdejong
8cc9ceb980
Changed all source files into node.js modules
2013-08-05 23:05:23 +02:00
josdejong
6a6b5c3e61
Replaced all x instanceof Array with Array.isArray(x)
2013-08-04 14:30:38 +02:00
josdejong
19b507b9f0
Refactored all code to 2 space indentation
2013-08-04 14:07:47 +02:00
josdejong
76b154e285
Complex computations will return a (real) Number instead of Complex(x,0) when possible.
2013-06-16 14:46:42 +02:00
josdejong
f93dcfbc44
More tests
2013-05-10 21:53:05 +02:00
josdejong
7d5982035b
Updated documentation of all methods. Changed cube and square to evaluate matrices element wise.
2013-04-20 14:04:34 +02:00
josdejong
4914084e3f
Removed Range from the function comments
2013-04-14 21:16:30 +02:00
josdejong
2742ab4fd5
Removed all instanceof checks for Range
2013-04-14 14:32:24 +02:00
josdejong
50276ee814
Removed the build-in parser documentation from the core library.
2013-04-11 19:52:18 +02:00
josdejong
04f51c5beb
Implemented Matrix support for all methods
2013-04-01 15:30:25 +02:00
josdejong
0c41367b6f
Implemented fallback to primitive value of objects for all methods
2013-03-19 20:25:06 +01:00
josdejong
91e520dfb4
Implemented Array support for methods with one parameter
2013-03-09 20:55:03 +01:00
josdejong
ed36dd796b
Implemented methods cube, factiorial, log(x, base), log10, sign, square
2013-02-25 20:18:03 +01:00
josdejong
61b2a45a9a
Added check for correct argument count to all functions
2013-02-23 14:13:17 +01:00
josdejong
27b96f31e9
Implemented methods asin, acos, atan
2013-02-17 15:54:48 +01:00
josdejong
17cb48b7d0
Renamed project from math2 to mathjs
2013-02-17 01:36:22 +01:00
josdejong
b721f4e2ce
First few functions implemented (abs, exp, log, sqrt, sin, cos, tan)
2013-02-16 20:59:41 +01:00