HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulevector-space-0.19Haskell2010

Data.Maclaurin

Infinite derivative towers via linear maps, using the Maclaurin representation. See blog posts http://conal.net/blog/tag/derivative/.

  • 2 types
  • 18 values
  • Packagevector-space-0.19
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceMaclaurin.hs
datadata (:>) a b
#

Tower of derivatives.

Constructors

Instances19Eq, Floating, Fractional, Num, Ord, Show, …
typetype (:~>) a b = a -> a :> b
#

Infinitely differentiable functions

valuefmapD :: HasTrie (Basis a) => (b -> c) -> a :> b -> a :> c
#

Map a linear function over a derivative tower.

value(<$>>) :: HasTrie (Basis a) => (b -> c) -> a :> b -> a :> c
#

Map a linear function over a derivative tower.

valueidD :: (VectorSpace u, HasBasis u, HasTrie (Basis u)) => u :~> u
#

Differentiable identity function. Sometimes called "the derivation variable" or similar, but it's not really a variable.

valuedistrib
  1. :: (HasBasis a, HasTrie (Basis a), AdditiveGroup u)
  2. => b -> c -> u
  3. -> a :> b
  4. -> a :> c
  5. -> a :> u
#

Derivative tower for applying a binary function that distributes over addition, such as multiplication. A bit weaker assumption than bilinearity. Is bilinearity necessary for correctness here?

Misc

4 declarations