4454 Commits

Author SHA1 Message Date
Jos de Jong
6d3588ef96 Refactor mathWithTransform into a LazyMap. Follow-up of #2264 2021-07-07 15:24:10 +02:00
Jos de Jong
7390a09392 Merge branch 'mathWithTransform-using-maps' of https://github.com/jhugman/mathjs into jhugman-mathWithTransform-using-maps 2021-07-07 11:01:23 +02:00
Jos de Jong
3ef7c35608
Merge branch 'develop' into mathWithTransform-using-maps 2021-07-07 11:01:10 +02:00
Jos de Jong
85c3635664 Merge branch 'mathWithTransform-using-maps' of https://github.com/jhugman/mathjs into jhugman-mathWithTransform-using-maps 2021-07-07 11:00:52 +02:00
Jos de Jong
2f8f088ab1 Publish v9.4.4 v9.4.4 2021-07-07 10:35:58 +02:00
Jos de Jong
e8a4123fc2 Fix #2258: drop official support for nodejs 10 2021-07-07 10:29:09 +02:00
Jos de Jong
6560f65740 Update dependencies, history, and authors 2021-07-07 10:26:42 +02:00
Michal Grňo
c7b09fea36
Add core-js polyfill for lib/browser (#2266)
* added core-js polyfills for lib/browser/math.js

* exclude defaultInstanceCorejs from lib/esm and lib/cjs

* removed a semicolon

* changed useBuiltIns to usage

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-07-07 09:48:42 +02:00
Michal Grňo
4dbf40460b
Fix intersect not returning null for matrix input (#2270)
* refactored intersect, fixed it not returning null for matrix input

* intersect: improved flattening algorithm, added tests

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-07-07 09:16:22 +02:00
CRIMX
fe7d8a7100
docs(expressions): fix incorrect example link (#2273) 2021-07-07 08:28:01 +02:00
James Hugman
22b0282fae
Change math function lookup in the AST to use Map 2021-07-03 14:29:40 +01:00
Jos de Jong
eb6c0ec458 Update history and authors 2021-07-03 12:11:31 +02:00
davidtranhq
f79fec6db5
Fix ArrayNode.toTex(): Remove the row delimiter on the last row (#2267)
* fix toTex(): remove row delimiter on the last row

* remove row delimiter on the last row (use map and join instead of forEach)

* fix ArrayNode.toTex() unit tests incorrectly expecting a row delimiter on the last row

* added toTex() tests for nested cases

* fixed ArrayNode.toTex() for nested cases

* removed redunant variable
2021-07-03 12:10:22 +02:00
Jos de Jong
fcaa242fb1 Publish v9.4.3 v9.4.3 2021-06-23 15:34:36 +02:00
Jos de Jong
7732f07519 Update history 2021-06-23 15:25:30 +02:00
Jos de Jong
9ba193ce8a Update history, remove a redundant config setting 2021-06-23 15:24:05 +02:00
Michal Grňo
b4eed8ee92
Fix Decimal prototype pollution (#2244)
* changed BigNumber to a class that extends Decimal.clone(...)

* it works... if you patch decimal.js

* added a test that checks if sum of Decimals works

* minor improvement of code quality

* updated Decimal.js to 10.3

* removed the optional chaining operator to keep compat w/ Node 12

* removed try/catch from isBigNumber

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-06-23 15:23:08 +02:00
Jos de Jong
6f804cb882 Revert to mocha@8.4.0, mocha@9.0.1 causes some of the unit tests to fail on IE 11 2021-06-23 15:01:08 +02:00
Jos de Jong
645c80e9bb Use configured mocha timeout in karma tests 2021-06-23 13:07:03 +02:00
Jos de Jong
b71a4e01e9 Update devDependencies 2021-06-23 11:15:08 +02:00
Jos de Jong
8d6aaf3957 Oops, set forbid-only true again 2021-06-23 11:05:10 +02:00
Jos de Jong
4d841e4572 Create a mocha config file, define global timeout of 10 seconds 2021-06-23 11:03:08 +02:00
Jos de Jong
ebb5fce7c2 Run unit tests on Node 16 2021-06-23 10:51:57 +02:00
Jos de Jong
1469ddf381 Fix linting issue, update history and authors 2021-06-23 10:51:14 +02:00
Kiran Chand
0850ac2ca6
Fixing incorrect typing error for floor function. (#2246)
* fixing incorrect typing error for floor function

* removing prettier auto format

Co-authored-by: write2kcl <write2kcltech@alamy.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-06-23 10:45:16 +02:00
Manuel Serra
6e2abc90ec
Fix outdated types (#2252)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-06-23 10:43:50 +02:00
Jos de Jong
c8742d18cf Fix #2253: expression parser throwing an error when accessing nested object properties named e 2021-06-23 10:35:17 +02:00
Jos de Jong
8b3e0e1067 Fix #2255: document the implicit property of OperatorNode 2021-06-23 10:02:33 +02:00
Jos de Jong
780bde7ed5 Extend example custom_datatype.js demoing it a bit more 2021-06-23 09:15:31 +02:00
Jos de Jong
69e395cd2f Extend example custom_datatype.js demoing it a bit more 2021-06-23 09:14:49 +02:00
Jos de Jong
251b16713a Update AUTHORS 2021-06-20 10:47:44 +02:00
daniel indlekofer
e74724dcc6
Update README.md (#2254)
writing problem
2021-06-20 10:46:47 +02:00
Jos de Jong
3278504d0c Publish v9.4.2 v9.4.2 2021-06-05 12:43:17 +02:00
Jos de Jong
8667b316cb Update history and authors 2021-06-05 11:43:33 +02:00
Opportunity
7fea45d4a3
Add types for custom parsing functions (#2228)
* Add types for custom parsing functions

See https://github.com/DefinitelyTyped/DefinitelyTyped/pull/52648

* Update index.ts

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-06-05 11:42:55 +02:00
Jos de Jong
827373521d Give unit test more time to run (for IE) 2021-06-05 11:32:13 +02:00
Jos de Jong
3740da6ef5 Update history 2021-06-05 11:18:48 +02:00
Michal Grno
0dfc1482ac fix linting issues 2021-06-03 02:49:26 +02:00
Michal Grno
c99f3a0160 added a test for inverse iteration 2021-06-03 02:49:26 +02:00
Michal Grno
e093476de4 implemented inverse iteration for eigs 2021-06-03 02:49:26 +02:00
Jos de Jong
10b031afa4 Publish v9.4.1 v9.4.1 2021-05-24 11:19:58 +02:00
Jos de Jong
e538cf6463 Update dependencies 2021-05-24 10:00:09 +02:00
Jos de Jong
edf1d1afac Update history 2021-05-24 09:53:43 +02:00
Daniel Hritzkiv
95bf1d8f81
Remove note about needing to install @types/mathjs package (#2221)
Due to #2192
2021-05-24 09:51:52 +02:00
Daniel Hritzkiv
41bd5f336d
Add types to files for publishing to npm (#2220)
Closes #2219
2021-05-24 09:51:33 +02:00
Jos de Jong
e051cae156 Do not use Object.entries for now (gives IE11 error, babel transpilation missing I suppose) 2021-05-19 16:34:19 +02:00
Jos de Jong
587ad28cdc Update history and authors 2021-05-19 16:26:48 +02:00
andrebianchessi
abdd258ac2
Adds types for eigs function (#2216)
* Adds types for eigs. fixes #2100

* adds space

* BigNumber[] fix
2021-05-19 16:25:13 +02:00
Jos de Jong
593f998238 Update how_to_publish.md 2021-05-16 14:01:32 +02:00
Jos de Jong
06d9675b5d Publish v9.4.0 v9.4.0 2021-05-16 13:57:22 +02:00