4890 Commits

Author SHA1 Message Date
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
brunoSnoww
2a050cd154
chore: refactor index.d.ts (#2913)
* refactor index.d.ts

* testTypes fixes

* add string to unaryPlus type

* add string to unaryPlus chain type

* use mathnumerictype instead and remove fraction from trigonometric functions

* code review

* code review
2023-03-14 08:35:35 +01:00
Jos de Jong
151baca0af fix #2908: improve docs and examples of functions partitionSelect, diff, expm1, round, nthRoots, sign, rigthArithShift, setIsSubset, setSize, and the docs about units 2023-03-09 11:54:45 +01:00
Jos de Jong
1fee98b8e3 chore: update history and authors 2023-03-09 10:57:20 +01:00
Jakub Riegel
3b89324111
#2567: accept array as parameter for gcd() (#2878)
* #2567: accept array as parameter for gcd()

* #2567: accept 1d matrix as gcd() argument

* #2567: support nested 1d array in gcd

* #2567: simplify matrix signature

* [fix] intersect method parameter type (#2897)

* Update history and authors (see #2897)

* feat: added chirp-z transform to calculate non-power-of-2 fft (#2900)

* added chirp-z transform to calculate non-power-of-2 fft

* simplify/remove _ifft function inside _czt function

* chore: remove an unused dependency from `simplifyConstant`

* fix: quantileSeq not accepting a matrix as second argument `prob` (see #2902)

* fix a broken example of function `to`

* fix a typo in the examples functions `distance`, `getMatrixDataType`, `subset`, and `max` (see #2902)

* fix linting issue

* Broadcasting (#2895)

* broadcasting

* Simplified broadcasting

* Updated for broadcasting

* Changed to camel case

* Camel case and auto formating

* Added comments

* Skip if matrices have the same size

* Fixed issue with undefined variable

missing dot  in `A._size`

* Implemented broadcasting in all functions

* Added helper functions

* Added function to check for broadcasting rules

* Tests for broadcasted arithmetic

* Fixed issue with matrix the size of a vector

* Documented and updated broadcasting

* Included broadcast.test

---------

Co-authored-by: David Contreras <david.contreras@guentner.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>

* Update history and authors

* Update devDependencies

* publish v11.6.0

* fix #2906: improve description of the behavior of `subset` for scalar values in the docs

* fix #2907: determinant of empty matrix should be 1

* chore: add a few more unit tests to `det`

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
Co-authored-by: Jaeu Jeong <wodndb@gmail.com>
Co-authored-by: cyavictor88 <100557319+cyavictor88@users.noreply.github.com>
Co-authored-by: David Contreras <dvd.cnt@gmail.com>
Co-authored-by: David Contreras <david.contreras@guentner.com>
2023-03-09 10:56:18 +01:00
Jos de Jong
0e777bf619 chore: add a few more unit tests to det 2023-02-28 10:02:24 +01:00
Jos de Jong
00cee87597 fix #2907: determinant of empty matrix should be 1 2023-02-28 10:00:37 +01:00
Jos de Jong
6fb485de5f fix #2906: improve description of the behavior of subset for scalar values in the docs 2023-02-27 11:28:22 +01:00
Jos de Jong
6b7317880d publish v11.6.0 v11.6.0 2023-02-24 10:13:54 +01:00
Jos de Jong
1db2270843 Update devDependencies 2023-02-24 10:11:28 +01:00
Jos de Jong
3235e28f9b Update history and authors 2023-02-23 19:26:23 +01:00
David Contreras
f8013cc99a
Broadcasting (#2895)
* broadcasting

* Simplified broadcasting

* Updated for broadcasting

* Changed to camel case

* Camel case and auto formating

* Added comments

* Skip if matrices have the same size

* Fixed issue with undefined variable

missing dot  in `A._size`

* Implemented broadcasting in all functions

* Added helper functions

* Added function to check for broadcasting rules

* Tests for broadcasted arithmetic

* Fixed issue with matrix the size of a vector

* Documented and updated broadcasting

* Included broadcast.test

---------

Co-authored-by: David Contreras <david.contreras@guentner.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-02-23 19:24:55 +01:00
Jos de Jong
99829d311b fix linting issue 2023-02-23 17:08:48 +01:00
Jos de Jong
9669734cb4 fix a typo in the examples functions distance, getMatrixDataType, subset, and max (see #2902) 2023-02-23 17:04:53 +01:00
Jos de Jong
9bacfebd8d fix a broken example of function to 2023-02-23 16:51:34 +01:00
Jos de Jong
f865658339 fix: quantileSeq not accepting a matrix as second argument prob (see #2902) 2023-02-23 16:48:56 +01:00
Jos de Jong
d7ad001550 chore: remove an unused dependency from simplifyConstant 2023-02-23 16:35:08 +01:00
cyavictor88
517187131d
feat: added chirp-z transform to calculate non-power-of-2 fft (#2900)
* added chirp-z transform to calculate non-power-of-2 fft

* simplify/remove _ifft function inside _czt function
2023-02-23 15:40:08 +01:00
Jos de Jong
218ae5a3e9 Update history and authors (see #2897) 2023-02-16 16:59:45 +01:00
Jaeu Jeong
375a1477ae
[fix] intersect method parameter type (#2897) 2023-02-16 16:57:06 +01:00
Jos de Jong
0230a17af5 Fix: split a long sentence in the docs in two 2023-02-08 11:52:29 +01:00
Jos de Jong
edb8b5ffd1 Fix: typo in the docs about calculations with matrices 2023-02-08 11:49:35 +01:00
Jos de Jong
68b4b503f7 Fix #2891: functions column and row sometimes returning a scalar number 2023-02-02 12:29:52 +01:00
Jos de Jong
3a77a6fede Fix #2892: an error in the examples of the embedded help of function sort 2023-02-02 12:08:07 +01:00
Jos de Jong
77934348aa chore: update HISTORY.md 2023-02-02 10:33:44 +01:00
Jos de Jong
391677f9e0 fix #2888: update type definitions of function unit to allow creating a unit from a fraction or complex number 2023-02-02 10:32:06 +01:00
Jos de Jong
2c5a29030c chore: publish v11.5.1 and update devDependencies v11.5.1 2023-01-31 17:30:20 +01:00
brunoSnoww
654e1b7357
Refactor dotMultiply, dotPow and dotDivide types (#2890)
* refactor types

* refactor on chain types

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-01-31 17:21:36 +01:00
Jay Wang
78a593bbb5
Change types in matrix map() and forEach() (#2887)
* Change types in matrix map() and forEach()

* Add new line in the end of index.d.ts

Signed-off-by: Jay Wang <xiao.hk1997@gmail.com>

---------

Signed-off-by: Jay Wang <xiao.hk1997@gmail.com>
2023-01-31 17:15:22 +01:00
Jos de Jong
2e8da508f1 chore: update history and authors 2023-01-30 11:34:34 +01:00
Ari Markowitz
ac0ffb7d15
Add numeric types to complex() type declaration (#2886) 2023-01-30 11:31:13 +01:00
Jos de Jong
35f30f2c35 Revert "fix #2870: implement a workaround for Next.js confusing npm package names complex.js and fraction.js with relative filenames"
This reverts commit 078049e9d9e764e4efe904896a0b22813e2751ff.
2023-01-24 16:47:22 +01:00
Jos de Jong
078049e9d9 fix #2870: implement a workaround for Next.js confusing npm package names complex.js and fraction.js with relative filenames 2023-01-24 16:37:36 +01:00
Jos de Jong
496c000d7b fix #2884: fix examples in the embedded docs of function pow and some other functions 2023-01-24 11:26:38 +01:00
Jos de Jong
224ef387ac chore: update history 2023-01-23 11:02:40 +01:00
Jos de Jong
a012c1ee25 fix #2883: add missing syntax for statistical functions in docs 2023-01-23 10:55:27 +01:00
Jos de Jong
c748ee9e39 chore: update history and authors 2023-01-15 09:34:04 +01:00