4926 Commits

Author SHA1 Message Date
Aly Khaled
8475ab997b
zpk2tf and freqz functions implementation (#2988)
* Add Zpk2tf function

* Add zpk2tf function documentation

* Fix

* Add freqz function implementation

* Fix format

* Add freqz function documentation

* Fix

* Fix format

* Update index.d.ts

* Fix Dependency error

* Fix

* Fix index.d.ts

* Fix Documentation

* Fix Lint

* Fix index.d.ts

* Fix The Matrix parameter support and index.d.ts

* Fix Format

* Add Unit Tests for Matrix cases

* Fix Docs and Lint

* Add tests for coverage

* Fix Format

* Update AUTHORS

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-07-13 17:23:50 +02:00
David Contreras
7923d58e2e
Range refactoring (#2995)
* reange refactoring

* update authors

* Made _range to work also for _bigNumbers

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-07-13 17:02:18 +02:00
Jos de Jong
ab409dffeb chore: ignore freqz in the doc test for the time being (see #2988) 2023-07-13 16:48:04 +02:00
Jos de Jong
6169f0a8a5 docs: update HISTORY.md 2023-07-12 15:03:31 +02:00
David Contreras
1aed900cc0
feat: implement solveODE (#2958)
* Included math to syntax when missing

* Included solveODE

* renamed initialStep as firstStep

* Included tests for solveODE

* Test the full state instead of the final state

* Fixed issue with tolerance

* Added unit signature for y0

* Included units test also for y0

* Included embedded docs and more tests

* Included error for tspan

* It works with bignumbers

* reduced calling bignumber

* extended the search for bignumbers

* The jsdocs is less ambiguous

* included tests for step options

* Allowed for 0 minStep

* Optimization to avoid checking the sign every step

---------

Co-authored-by: David Contreras <david.contreras@guentner.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-07-12 14:28:10 +02:00
Jos de Jong
f48caf9f50 docs: don't check expected result of an example when we don't know the expected result 2023-07-12 14:15:57 +02:00
Jos de Jong
f0b87e435e chore: update HISTORY.md 2023-07-12 13:23:54 +02:00
Carl Osterwisch
a1e6e9301e
fix: nearly-zero temperature conversion result (#2962)
* Test for roundoff error due to offset

* Set result to exactly 0 if it is within config.epsilon of 0

* Add more offset conversion tests

* Represent degR unit value as a Fraction(5, 9)

* Accurately convert from fraction to bignumber

* Add more tests demonstrating the improved offset conversions

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-07-12 13:21:56 +02:00
Jos de Jong
47bf525e3e chore: update history 2023-07-10 09:12:52 +02:00
Jos de Jong
bc9f4d6243 fix: #2996 two errors in the examples in the documentation about Expression trees 2023-07-10 09:11:57 +02:00
Jos de Jong
fd99219cef docs: update HISTORY.md 2023-07-05 13:55:05 +02:00
MaybePixem
aa819fac6a
fix: #2974 Simplify puts plus and minus signs next to eachother (#2981)
* adjust simplify rules

* fix formatting

* move rule back

* move rule
2023-07-05 13:54:01 +02:00
Jos de Jong
bf911816d3 chore: update history 2023-06-21 10:56:22 +02:00
Jos de Jong
19a1938e1a docs: improve embedded docs of evaluate 2023-06-21 10:56:15 +02:00
David Contreras
5b501f277b
Issues with embedded docs examples (#2976)
* Included math to syntax when missing

* Fixed examples in embedded docs
2023-06-21 10:47:45 +02:00
Jos de Jong
bb2f3cc3ed chore: publish v11.8.2 v11.8.2 2023-06-20 12:16:18 +02:00
Jos de Jong
e13be73993 docs: update HISTORY.md 2023-06-20 12:13:13 +02:00
Jos de Jong
1d96483940 chore: update devDependencies 2023-06-20 11:59:20 +02:00
Jos de Jong
6db3df2eee fix: #2972 type definitions of Unit.divide(Unit) have a wrong return type 2023-06-20 11:40:40 +02:00
Jos de Jong
29db0fb288 fix: #2971 improve typings of statistics functions min, max, mean, median, mode, std, sum, prod, variance 2023-06-20 11:33:38 +02:00
Jos de Jong
6d944e7dfb chore: publish v11.8.1 v11.8.1 2023-06-13 12:04:35 +02:00
Jos de Jong
91c18ae13f chore: update devDependencies 2023-06-13 12:01:49 +02:00
Jos de Jong
cc4f8b6056 chore: update history and authors 2023-06-13 11:48:46 +02:00
Kiku
1b06ec4b81
fix #2964: distance from point to line (#2965)
some additional unit tests, types and doc fix for distance function

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-06-13 11:02:57 +02:00
Michael Greminger
6fa589057e
Big Number Format Fixes (#2956)
* test: format bignumber to engineering bug

Add tests for correctly handling starting with more then 3 sig figs and targeting 1 or 2 sig figs

* lint:

* lint: reduce number literal sig figs

* fix: engineering notation for bignumber input

Corrects handling of cases where the input has 3 or more sig figs and the output is set to 1 or 2 sig figs.

* test: add negative format bignumber precision test

* fix: use BigNumber for all branches in toEngineering

Also, remove string type option from JSDoc for toEngineering since string does support the required interface for the function (the .e property, .mul member function, and the .constructor property would not be correct after this change)

* fix: precision 0 for fixed notation and bignumber

This fix differentiates precision === 0 and precision === undefined to.
After fix, format bignumber for precision 0 matches format number for precision 0.

Tests added as well

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-06-13 10:39:44 +02:00
Jos de Jong
3c59d1a9ca
fix: #2880 not possible to map cube root cbrt (#2966)
* fix: #2880 not possible to map cube root `cbrt`

* fix: bind signature, add comments
2023-06-08 10:04:29 +02:00
Jos de Jong
1798dda667 chore: update history and authors 2023-06-07 16:47:22 +02:00
kunalagrwl
6e25f5ac47
fix: #2959 typo in doc (#2963)
* Update parsing.md

Fixing doc typo

* Update parser.js

Fixing typo in doc

* Update Parser.js

Fix typo in doc
2023-06-07 15:30:52 +02:00
Jos de Jong
23cf6e8035 chore: update history 2023-05-22 21:42:47 +02:00
Maxim Mazurok
5b53fff681
feat: better min/max return type (#2955) 2023-05-22 21:39:41 +02:00
Jos de Jong
863780af23 chore: drop testing nodejs 14, test on nodejs 16, 18, 20 now 2023-05-16 11:26:10 +02:00
Jos de Jong
45eba1216e chore: drop testing nodejs 14, test on nodejs 16, 18, 20 now 2023-05-16 11:25:05 +02:00
Jos de Jong
bbfc12095e docs: update history 2023-05-15 20:36:39 +02:00
David Contreras
24a8087499
Included math to syntax when missing (#2941) 2023-05-15 20:01:44 +02:00
David Contreras
ebf92874e2
d was assigned twice to a constant (#2930) 2023-04-21 16:42:03 +02:00
Jos de Jong
be92d8f237 chore: update caniuse-lite (via npx update-browserslist-db@latest) 2023-04-03 14:07:34 +02:00
Jos de Jong
d9cf344e5a Merge remote-tracking branch 'origin/develop' into develop v11.8.0 2023-04-03 13:55:06 +02:00
Jos de Jong
c5b07c8555 chore: publish v11.8.0 2023-04-03 13:54:54 +02:00
Jos de Jong
9de7742929 chore: update HISTORY.md 2023-04-03 13:49:22 +02:00
Jos de Jong
db3e62e5c3
feat: extend functions fraction, bignumber, and number with support for units, see #2918 (#2926)
* feat: extend function `fraction` with support for units (see #2918)

* fix: update the TypeScript definitions with the new `math.fraction(value: Unit)` support

* feat: implement `math.bignumber(value: Unit)`

* feat: update type definitions of function `math.bignumber`

* fix: linting issue

* feat: implement support for `math.number(unit)` (was formerly throwing an exception)
2023-04-03 13:48:24 +02:00
Jos de Jong
1fecf4c50a chore: remove sponsors section and Github workflow of Foresight 2023-04-03 09:27:07 +02:00
Jos de Jong
b47b9c1342 chore: update AUTHORS and HISTORY.md 2023-03-29 15:32:39 +02:00
TMTron
c97e0be8b7
fixed #2923: [DOC] distance syntax is wrong (#2924)
* fixed #2923: [DOC] distance syntax is wrong

* fixed #2923: [DOC] distance syntax is wrong
* added detailed syntax descriptions
2023-03-29 15:19:51 +02:00
Jos de Jong
eebae6a33a docs: update history 2023-03-27 12:54:50 +02:00
brunoSnoww
079300f183
Fix gcd type (#2922)
* refactor gcd type

* add tests

* just refactor gcd...

* little change on test

* update gcd chain
2023-03-27 09:49:19 +02:00
Jos de Jong
7950d9c1f3 docs: update history and authors 2023-03-17 16:36:01 +01:00
Angus Comrie
5498beed93
adds additional ampere aliases (#2917)
Adds "amps" and "amp" as new alias for "ampere"
2023-03-17 16:05:22 +01:00
Jos de Jong
33e35d4bca chore: publish v11.7.0 v11.7.0 2023-03-15 11:29:38 +01:00
Jos de Jong
d9daaba6fd chore: update devDependencies 2023-03-15 11:27:12 +01:00
Jos de Jong
f2dbf03f10 docs: update history 2023-03-14 08:38:44 +01:00