Module
Data.Taylor
- Package
- purescript-taylor
- Repository
- paf31/purescript-taylor
Taylor series as lazy lists of coefficients.
#Taylor Source
newtype Taylor a
A Taylor series, with coefficients in the specified Semiring
.
By varying the base Semiring
, we can do various interesting things:
- Using
Number
, we can compute arbitrary higher order derivatives of functions. - Using
Complex
, we can compute path derivatives of functions. - Using the
Free
Semiring
, we can implement symbolic differentiation.
Instances
#coefficients Source
coefficients :: forall a. Taylor a -> List a
Extract the coefficients as a lazy list.
- Modules
- Data.
Taylor