* adding scipy integrate, initial check-in
* compile unix double-precision, select integrations algos
* bumping ulab version number to 6.7.0
* adding documentation
* documentation fix
* documentation fix
* documentation fix
* rewritten in some places
* complex number error handling
* added test cases
* resolved importing scipy.integrate
* resolved importing scipy.integrate #2
* build integrate only when we have MICROPY_FLOAT_IMPL_DOUBLE
* reverting commit a4c0c0b
* re-pushing failed commit
* Revert "re-pushing failed commit"
This reverts commit a10e89fe14.
* improve tests using math.isclose()
* enabled fp32 builds
* removed conditional includes
* adapted to new function names, corrected importing
* function names similar to in CPython scipy.integrate, some minor corrections
* major rewrite representing the name changes, mapping to CPython scipy.integrate, more background info
* add optional out keyword argument to math functions
* fix the keyword handling in sqrt
* run micropython build on ubuntu 20.04 instead of latest
* fix unused variable error in vector_generic_vector
This is useful for generating FIR filters using code snippets generated at
https://fiiir.com/ (at least those with a rectangular window type; other
window types need additional functions but we can revisit it later if needed)
I think this will come in handy for folks who are using the advanced
features of our audio synthesizer module, synthio.
e.g., the following block now gives highly similar results on ulab
or numpy:
```py
try:
import numpy as np
except:
from ulab import numpy as np
# Example code, computes the coefficients of a low-pass windowed-sinc filter.
# Configuration.
fS = 48000 # Sampling rate.
fL = 4000 # Cutoff frequency.
N = 23 # Filter length, must be odd.
# Compute sinc filter.
h = np.sinc(2 * fL / fS * (np.arange(N) - (N - 1) / 2))
# Normalize to get unity gain.
h /= np.sum(h)
# Applying the filter to a signal s can be as simple as writing
# s = np.convolve(s, h)
* implement floor division
* fix 3D, 4D loops
* add missing array declaration in 3D, and 4D
* Add test cases for floor division and fix it for ints (#599)
* Add test cases for floor division
* Fix define name in comment
* Fix floor division of ints
---------
Co-authored-by: Maciej Sokołowski <matemaciek@gmail.com>