lazysplines-0.3: Differential solving with lazy splines

Safe HaskellSafe
LanguageHaskell98

Numeric.LazySplines

Contents

Description

This module consists of source code to accompany the draft paper: "Declarative Equations, Compositional Strategies: Solving Differential Systems with Lazy Splines" at http://gbaz.github.io/slides/ode-draft-2009.pdf.

See the paper for a description of how the system works, and the source of the Examples module for usage.

Some slides from a more recent description of the core mechanism are at http://gbaz.github.io/slides/integration.html.

Synopsis

Documentation

class Sampleable a where Source #

Something that can be sampled.

Methods

at :: a -> Double -> Double Source #

Instances
Sampleable Spline Source # 
Instance details

Defined in Numeric.LazySplines

Methods

at :: Spline -> Double -> Double Source #

Sampleable PolySegment Source # 
Instance details

Defined in Numeric.LazySplines

Sampleable Poly Source # 
Instance details

Defined in Numeric.LazySplines

Methods

at :: Poly -> Double -> Double Source #

Sampleable [Poly] Source # 
Instance details

Defined in Numeric.LazySplines

Methods

at :: [Poly] -> Double -> Double Source #

type Poly = [Double] Source #

match :: a -> [a] -> [a] Source #

trimmingTo :: Spline -> Int -> Spline infixl 1 Source #

lastDef :: t -> [t] -> t Source #

headDef :: p -> [p] -> p Source #

(#) :: (Eq a, Num a, Num [a]) => [a] -> [a] -> [a] infixr 9 Source #

diff :: Num c => [c] -> [c] Source #

countFrom :: Num t => t -> [t] Source #

pickValue :: Double -> (a -> Double) -> [a] -> a Source #

findValue :: Double -> (a -> Double) -> (Double -> a) -> a Source #

Orphan instances

Fractional Poly Source # 
Instance details

Methods

(/) :: Poly -> Poly -> Poly #

recip :: Poly -> Poly #

fromRational :: Rational -> Poly #

Num Spline Source # 
Instance details

Num Poly Source # 
Instance details

Methods

(+) :: Poly -> Poly -> Poly #

(-) :: Poly -> Poly -> Poly #

(*) :: Poly -> Poly -> Poly #

negate :: Poly -> Poly #

abs :: Poly -> Poly #

signum :: Poly -> Poly #

fromInteger :: Integer -> Poly #