1027 Commits

Author SHA1 Message Date
jos
6b6ae1383c Dropped fake BigNumber support from function erf 2019-05-15 10:54:02 +02:00
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
20aa9a005a Fix circular dependency in math namespace for evaluate 2019-04-29 21:19:50 +02:00
jos
427c39c33b Created ES5 and ES6 entry points 2019-04-28 20:56:08 +02:00
jos
bb9a1e2164 Rename *Full files to *Any 2019-04-27 20:27:26 +02:00
jos
f4d4180cea Move all entry files under ./src/entry 2019-04-24 10:48:01 +02:00
jos
33cead1327 Improved deprecation errors and warnings. Introduce lazy again for factories. 2019-04-22 09:45:57 +02:00
jos
6081360d6a Merged develop into modular_architecture 2019-04-13 16:51:51 +02:00
jos
87b9a3d07f Fixed #1459: engineering notation of function format not available for BigNumber 2019-04-08 21:17:39 +02:00
jos
e6c5df5af5 Fix merge conflicts in row+column PR 2019-03-21 21:51:05 +01:00
SzechuanSage
8090297271 Flatten mocha tests for row and column functions 2019-03-21 21:56:49 +10:00
bnlcas
0db42306ec Extend std var for variable dimensions request 999 (#1444)
* initial implementation of multidimensional std and var

* consolidated std function into var, cleaned up the interface for var, fixed bias correction

* added documentation of variable axis for std and var

* updated documentation for std and var

* changed the order of normalization and dimension for a three parameter input in the functions

* updated documentation for var and std

* add transform expressions for std and var with variable axis

* added test coverage for std and var with a variable axis

* update to documentation

* change n dim std to use apply function

* fixed tests, removed unnecessary code, updated docs

* fixed typo in docs

* update docs to remove a type

* changed location of apply function

* updated tests to use deepStrictEqual to pass linter

* adding test coverage for var.transform and std.transform
2019-03-20 15:21:55 +01:00
bnlcas
128ed3cd9f Create apply utility request 1359 (#1411)
* add placeholder for apply function

* added apply function

* add test coverage for apply utility

* stylsitic name change in apply source code

* stylistic format change to test

* improved description of function parameters

* moved the apply function to the public matrix functions

* update location and reference of unit test

* fixed function reference paths in apply for location in function

* changed path to apply in apply.test

* make apply a typed function, update unit test

* added typing error test to coverage

* remove apply.test.js from the utils test function

* added transform function for apply

* add unit test for apply.transform.js
2019-03-17 20:15:38 +01:00
Jos de Jong
f9201affba
Merge branch 'develop' into develop 2019-03-10 16:33:12 +01:00
Eric Mansfield
30b45d8633 Fuzzy range endpoint (#1434)
* Fixed unit base recognition and formatting for user-defined units

* Began writing tests for range

* Use fuzzy comparisons for detecting range endpoint
2019-03-10 13:39:13 +01:00
Eric Mansfield
c0ca6da6a4 Gracefully handle round-off errors in fix, ceil, and floor (#1432)
* Fixed unit base recognition and formatting for user-defined units

* Manually copied work from another branch

* Removed semicolons

* Replaced assert.equal with assert.strictEqual

* Added support for bignumber

* Replaced var with const
2019-03-10 13:36:50 +01:00
SzechuanSage
f7364372fb Merge branch 'develop' of https://github.com/SzechuanSage/mathjs into develop 2019-03-08 23:56:31 +10:00
SzechuanSage
4823dcdce1 Fix row and column function tests to use row and column functions 2019-03-08 22:56:18 +10:00
SzechuanSage
6e1caa67dd Add tests for matrix functions row and column 2019-03-08 22:26:56 +10:00
sam-19
9bfdff1d06 Support pow() as an argument for derivative() (#1417)
* Support pow() as an argument for derivative()

Add support for the pow() function as an argument for math.derivative().

Fixes #1259.

* Unit tests for derivatives of pow()

* Support for derivate of pow() function
2019-03-02 10:37:43 +01:00
jos
7d00987a3f Fix #1404: inconsistent rounding of negative numbers 2019-02-20 16:54:10 +01:00
jos
554d2243de Refactor hasNumericValue and sum.transform 2019-02-09 21:56:22 +01:00
jos
83df09800b Merge branch 'develop' into modular_architecture_merge
# Conflicts:
#	HISTORY.md
#	gulpfile.js
#	package-lock.json
#	package.json
#	src/core/function/typed.js
#	src/expression/transform/index.js
#	src/function/statistics/sum.js
#	src/function/utils/index.js
#	src/type/unit/Unit.js
#	src/version.js
#	test/expression/node/FunctionNode.test.js
#	test/type/unit/function/createUnit.test.js
#	test/utils/bignumber/formatter.test.js
#	test/utils/number.test.js
2019-02-09 21:26:25 +01: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
869d4960f9 Create and use factory.js to import all dependencies in main instance. Deprecate all old nested index.js files. 2019-01-30 14:38:47 +01:00
jos
c42844a5d8 Flatten all type.* dependencies 2019-01-30 13:47:45 +01:00
jos
078f1dd69f Renamed methods .eval to .evaluate, updated all docs and examples accordingly 2019-01-16 10:11:32 +01:00
jos
90cc28a004 Testing for changed config again 2019-01-16 09:19:50 +01:00
jos
05e6cfec7f Doc generation working again. Renamed variance and evaluate occurrences in the docs. 2019-01-09 11:21:43 +01:00
jos
4d037c103c Refactored random, randomInt, and pickRandom in more compact typed functions 2019-01-05 18:15:46 +01:00
jos
1eee1f30dc Move the contents of distribution.js into random, randomInt, and pickRandom 2019-01-05 16:49:07 +01:00
jos
5dd0a9ba9c Get bundle working (with lazy loading) 2019-01-02 10:03:05 +01:00
jos
c32d410565 Refactor functions create and core. Use the new index files from all unit tests 2018-12-19 18:08:01 +01:00
bnlcas
e45c8805b3 Add axis for sum request 1244 (#1310)
* enable sum function to take an argument of dimension for a matrix fulfilling issue #1244

* added sum along a dimension to the unit test coverage for sum

* added information about sum along a dimension to the markdown

* fixed typo in error message

* made formatting chagnes for linter

* add sum to transformed functions
2018-12-09 13:09:36 +01:00
jos
4b3561e426 Use math.evaluate everywhere in the unit tests 2018-12-05 12:22:21 +01:00
jos
b6e80d687a Refactor ceil.test.js 2018-11-28 16:47:25 +01:00
jos
c529c14323 Split index file in two, having partials and fully created functions. Memoize created factory functions. Fix setting global epsilon of complex.js 2018-11-28 11:04:37 +01:00
jos
8c7c0117bb Remove some redundant unit tests 2018-11-24 22:15:02 +01:00
jos
d86710e065 Fix lint issue 2018-11-24 21:41:03 +01:00
jos
313f0bca5c Fix broken unit tests 2018-11-24 21:08:48 +01:00
jos
c136e9564f Fix broken unit test 2018-11-24 18:34:30 +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
19275e5eaa Moved all toTex properties to latex util file 2018-11-21 18:08:21 +01:00
jos
5597c5655d Remove dependency on math from simplify 2018-11-21 15:42:56 +01:00
jos
0bd3303211 Add some missing types in typed 2018-11-14 12:02:10 +01:00
jos
0d93f45dfd Many functions in place in mainAll 2018-11-09 17:39:35 +01:00
jos
4c35d62158 Refactor the last files with commonjs 2018-11-09 14:07:14 +01:00