4426 Commits

Author SHA1 Message Date
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
Jos de Jong
4af3c21341 Update history and authors 2021-05-16 13:35:45 +02:00
jhugman
e80995d52d
Add support for scopes with get and set methods (#2166)
* Add support for scopes with get and set methods

* Fix build for node v12

* Fixup cli and parser tests

* Add tests for simplify and evaluate

* Add example for a custom scope object

* Function calls need child scopes

* Transitionary step: Separate Safe and Scope Property calls

* Renamed identifiers in FunctionNode

* Evaluate with ObjectScopeWrapper

* Simplify tests passing

* Assume all scopes are map-like. Except parser

* Remove isMapLike check in customs.*SafeProperty() methods

* Change MapLike to Map

* Move keywords from an Object to a Set

* Move ScopeProperty functions in to scope.js

* Removed deprecation warning

* Rename scope.js to map.js

* Rename ScopeProperty to MapProperty

* Add tests and docs for map.js

* Put back the micro-optimization of function calls

* Use Map in the parser

* Called scope methods directly in cli.js

* Coercing of scope into a Map is done in Node, not evaluate

* Move createSubScope to its own file

* Fixup following self-review

* Add scope docs

* Final self-review changes

* Address reviewer comments

* Remove MapProperty witness marks

* Converted broken benchmark possibly lost in a rebase

* Use bare map as scope in benchmark

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-05-16 13:33:01 +02:00
Jos de Jong
7ed12ccd70 Upgrade to fraction.js@4.1.0, and integrate support for pow of rational exponents 2021-05-16 10:22:36 +02:00
Jos de Jong
bacfd5b66d Fix error caused by round off issue in IE 2021-05-13 19:09:56 +02:00
Jos de Jong
7f762f94f3 Update history 2021-05-13 18:58:35 +02:00
Javier Marín
fe7cf0387b
fix: Webpack v5 Error: Module not found: Package path ./lib/esm/number is not exported from package @node_modules\mathjs (#2213) 2021-05-13 18:56:49 +02:00
Jos de Jong
85e04c21f5 Update to complex.js@2.0.13 (fixing #2211) 2021-05-12 17:18:19 +02:00
Jos de Jong
410f5348ea Fix benchmarks not running (must load as CommonJS files) 2021-05-12 11:39:19 +02:00
Michal Grňo
435a6a0879
Fix “AIAO-MIMO” of my previous PRs (#2210)
* fix aiao-mimo of eigs(m)

* fix aiao-mimo of matrixFromFunction
2021-05-12 10:34:40 +02:00
Jos de Jong
477906d65a Fix #2123: add type definitions for functions row and column 2021-05-09 15:31:03 +02:00
Jos de Jong
40f515f9a1 Fix #2185: Fix TypeScript definition of unit division, which can also return a number 2021-05-09 15:29:12 +02:00
Jos de Jong
14c730ba53 Fix #2019: Remove null from the TypeScript definitions 2021-05-09 15:26:52 +02:00
Jos de Jong
e004d166d3 Update history and authors list 2021-05-09 15:26:47 +02:00
Meow
2b402f7cc3
Add type declaration of DefinitelyTyped (#2192)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-05-09 15:20:27 +02:00
Jos de Jong
efb17e56d5
Replace Sponsor button image 2021-05-09 14:02:55 +02:00
Jos de Jong
208df48ffd
Add github sponsor button in readme (see #2204) 2021-05-09 13:53:34 +02:00
Jos de Jong
78ba2ee76a Some updates in the docs to make the doc generator happy 2021-05-09 11:03:30 +02:00
Jos de Jong
95bb86a452 Update dependencies 2021-05-09 10:39:13 +02:00
Jos de Jong
df551dc1e6 rename createComplex to createComplexEigs to deduplicate (there is already a function createComplex) 2021-05-09 10:38:34 +02:00
Jos de Jong
99dbd0a83d Update history 2021-05-09 10:28:08 +02:00
Michal Grňo
d7a5693e91
Matrix creation and conversion methods (#2155)
* made dense and sparse matrices iterable, fixed #1184

* added matrixFromFunction, fixes #2153

* added tests for matrixFromFunction

* added matrixFromRows

* added matrixFromColumns

* added rows() and columns() for dense matrix

* improved sparse documentation a tiny bit

* fix linting issues

* added matrixFromRow/Column to seealso of row and column

* removed unnecessary duplication from matrixFromRows/Columns

* added babel runtime

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-05-09 10:26:16 +02:00
Jos de Jong
e163032ad2 Update history and authors list 2021-04-18 10:55:05 +02:00
Michal Grňo
9e8deb5c86
General eigenproblem algorithm (#1743)
* split the eigs function into multiple algorithms

* moved checks and coersions to eigs.js, made them more robust

* fix little bugs, make im and re more robust

* Implemented matrix balancing algorithm

* fix typos

* a draft of reduction to Hessenberg matrix

* finished implementation of reduction to Hessenberg

* fix Hessenberg elimination for complex numbers

* implemented non-shifted explicit QR algorithm for real matrices

* implemented vector computation, won't work untill usolve is fixed

* refactored to match yarn lint

* some minor changes

* solve merge conflicts

* refactored and re-fixed #1789

* some old uncommited changes

* fix small problems introduced by merging

* done some polishing

* improved jsdoc description of eigs

* little changes in jsdoc

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-04-18 10:52:51 +02:00
Jos de Jong
c23d312db6 Update history and authors list 2021-04-14 14:12:49 +02:00
烧风
32113e0b44
Fix pickRandom having no name (#2181) 2021-04-14 14:10:56 +02:00
Jos de Jong
e6af8ec92a Fix #2167: typo in error message 2021-04-14 10:07:55 +02:00
Jos de Jong
1757afb0e0 Fix #2169: mathjs requesting @babel/runtime dependency. Publish v9.3.2 v9.3.2 2021-04-12 19:44:13 +02:00
Jos de Jong
e6e6002f7b Publish v9.3.1 v9.3.1 2021-04-10 16:45:19 +02:00