5104 Commits

Author SHA1 Message Date
Jos de Jong
49df88985e docs: document how to run tests for the type definitions 2024-05-16 08:46:58 +02:00
Jos de Jong
599f4ee804 Fix: outdated, incorrect documentation about the order of precedence for
operator modulus `%`. See #3189
2024-04-29 11:19:44 +02:00
Jos de Jong
da0c70ebe3 fix: serialization of Units without a value, see #1240 2024-04-29 10:40:57 +02:00
Jos de Jong
d97f338fcc chore: replace util functions values and contains and usages of indexOf with using native JS functions values and contains (see #3194) 2024-04-25 08:35:49 +02:00
Jos de Jong
e37bacda36 chore: replace util functions values and contains with using native JS functions (see #3194) 2024-04-25 08:18:53 +02:00
Jos de Jong
a9fbb3560c chore: publish v12.4.2 2024-04-24 18:51:10 +02:00
Jos de Jong
c1f576033c chore: update devDependencies 2024-04-24 18:50:03 +02:00
Jos de Jong
80a0ac179a chore: update history 2024-04-24 09:31:29 +02:00
Laurent Gérin
81d2e71445
fix #3192: function isNaN returns false for NaN units in a matrix or array
* Use referToSelf() to recursively check if various types are NaN in an array or matrix

* fix array test description from isNegative to isNaN

* Add test for units in a matrix

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-04-24 09:31:06 +02:00
Jos de Jong
5c12c07e2c chore: replace utility function values with Object.values (fix #3194) 2024-04-24 08:14:48 +02:00
Jos de Jong
5aa35ce68a chore: update devDependencies (most notably gulp@5) 2024-04-04 22:02:31 +02:00
Jos de Jong
2e427ec3a9 fix: #3180 fix type definitions of function add and multiply to allow
more than two arguments
2024-04-03 09:27:12 +02:00
Jos de Jong
02f195f700 chore: update history 2024-03-21 08:45:03 +01:00
Rohil Shah
a29bab4048
docs: fix misleading documentation for expression tree traverse (#3177)
Callback function for MathNode.traverse() returns void. Documentation says callback must return a replacement for the existing node (possibly copied from transform() above).
2024-03-21 08:43:56 +01:00
Jos de Jong
c5922191e4 chore: publish v12.4.1 2024-03-13 16:47:30 +01:00
Jos de Jong
1efd24af46 chore: run npm audit fix 2024-03-13 16:43:55 +01:00
Jos de Jong
11f7785a64 chore: update devDependencies 2024-03-13 16:42:40 +01:00
Jos de Jong
becae3775f fix: #3175 cannot delete units using math.Unit.deleteUnit 2024-03-13 16:35:52 +01:00
Jos de Jong
a41def8360 fix: #3172 simplify "true and true" 2024-03-13 14:25:56 +01:00
Jos de Jong
e3f8de8de2 Merge remote-tracking branch 'origin/develop' into develop 2024-03-13 13:32:24 +01:00
Jos de Jong
00583064ed
doc: create CODE_OF_CONDUCT.md
See #3174
2024-03-13 09:56:11 +01:00
Jos de Jong
e19a2f9853 chore: update history 2024-03-08 16:30:18 +01:00
Jos de Jong
bb7e64612d Merge remote-tracking branch 'origin/develop' into develop 2024-03-08 16:26:28 +01:00
Jos de Jong
d430cf1e5b fix #3175: expose math.Unit.ALIASES, update history 2024-03-08 16:26:13 +01:00
Sukka
d5740c9ac9
chore: remove polyfill.io inside example (#3167)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-03-08 16:22:16 +01:00
Jos de Jong
02b8f147be chore: update history 2024-03-06 10:20:41 +01:00
Jos de Jong
83ae82aa21 fix: give the inputsDiv a white background (see #3151) 2024-03-06 10:19:27 +01:00
David Contreras
36611384da
feat: Interactive lorenz example (#3151)
* Interactive lorenz

* Separate Interactive Lorenz

* Cleanup

* Bigger graphs

* Full screen examples

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-03-06 10:16:49 +01:00
Jos de Jong
1bcc9f67c1 fix: faster startup time of the CLI and REPL by loading the bundled file 2024-03-05 17:18:09 +01:00
Jos de Jong
8d166ea9af update history 2024-02-23 15:37:44 +01:00
Jos de Jong
c1cf1c483e
fix #3162: add license information about CSParse (#3164) 2024-02-23 15:35:54 +01:00
Jos de Jong
50b15a751d fix #3163: toTex wrongly returning Infinity for large BigNumbers 2024-02-23 11:20:17 +01:00
Jos de Jong
4c42a14c81 chore: publish v12.4.0 v12.4.0 2024-02-22 16:32:22 +01:00
Jos de Jong
f504ffe1d3 chore: update devDependencies (most notably eslint) 2024-02-22 16:27:24 +01:00
Jos de Jong
db24bbe503 chore: update history 2024-02-22 16:17:46 +01:00
Brian Fugate
85b65da6cb
Fix: #3100 function round not handling round-off errors (#3136)
* Fixing rounding bug from issue 3100

* Corrected syntax and converted if...else to logic using ternary operator

* Removing nearlyEqual comparison because a false
return value was mathematically impossible by
user input.

Adding dynamic epsilon logic to cover cases when
a user requests to round a number to a higher
precision than epsilon in the config file.

Also adding tests to cover dynamic epsilon cases.

* Removing dynamic epsilon and adding test for changing config.epsilon during runtime

* Reintroducing nearly equal verification for
round function.

Adding test case for changing epsilon at runtime.

Both tests for changing epsilon at runtime also
verify the false nearlyEqual scenario.

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-02-22 16:17:05 +01:00
Jos de Jong
9baf478f70 chore: update history 2024-02-22 11:13:23 +01:00
RandomGamingDev
207623c931
feat: improve the performance f multiply by adding matrix type inferencing (#3149)
* added type inference

* added back accidentally removed return statement and made it so that the explicitly defined type is returned at the end

* made sure that mixed types are ignored in the process data types check

* fixed issue with undefined _data for SparseMatrix and linting issues

* simplified syntax and added type inferencing to src/type/matrix/utils and src/function/matrix/dot.js

* shortened the final part of the type inferencing and moved it to matrix creation in multiply

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-02-22 11:10:26 +01:00
Jos de Jong
9842ad93bf chore: update history 2024-02-21 13:28:51 +01:00
Rich Martinez
b78ac811a4
fix: mode signature return types (#3153)
* fix: mode type signatures

* Add ts tests for mode

* Add assertions mode type tests

* Update author Rich in AUTHORS file

---------

Co-authored-by: Rich Martinez <richmartinez@Edinas-MacBook-Pro.local>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-02-21 12:36:40 +01:00
Jos de Jong
663bbea40d fix: linting issue 2024-02-21 12:23:05 +01:00
Jos de Jong
a7f84abe51 fix: PartitionedMap and ObjectWrappingMap missing a property
`Symbol.iterator`
2024-02-21 12:17:30 +01:00
Jos de Jong
085b85532c docs: fix broken example in the documentation about matrices (see #3159) 2024-02-16 15:48:12 +01:00
Jos de Jong
8454d4baee chore: update history 2024-02-15 13:36:09 +01:00
David Contreras
065b3ae4e8
feat: trailing commas in matrices (#3154) 2024-02-15 13:35:19 +01:00
Jos de Jong
24b79aef98 chore: update history 2024-02-14 17:04:57 +01:00
David Contreras
60de1689de
docs: describe getAllAsMap in the Parser docs (#3158) 2024-02-14 17:03:12 +01:00
Jos de Jong
77d13c659f fix: #3155 remove an outdated section about complex numbers from the docs 2024-02-14 09:16:38 +01:00
Jos de Jong
cee9deb377 chore: publish v12.3.2 2024-02-08 10:07:33 +01:00
Jos de Jong
cc4a8456c3 chore: update devDependencies 2024-02-08 10:05:20 +01:00