Safe Haskell | None |
---|---|
Language | Haskell2010 |
Helpers for implicit integration methods
TODO: add possibility to make function to create initial value TODO: add possibility to break on step TODO: add possibility to add different initial value based on y0, f TODO: add seq-pseq to make this stuff strict TODO: add Newton iterations
- type ImplicitSolver a = (a -> a) -> (Int -> a -> a -> Bool) -> a -> a
- fixedPointSolver :: ImplicitSolver a
- fixedPoint :: (a -> a) -> (a -> a -> Bool) -> a -> a
- breakNormR :: Double -> Double -> Bool
- breakNormIR :: (Metric f, Floating a, Ord a, Num (f a)) => f a -> a -> Bool
types
type ImplicitSolver a Source #
Implicit solver type
solvers
fixedPointSolver :: ImplicitSolver a Source #
Fixed point method it iterates function f until it will break "" will be reached then it returns one but last iteration
:: (a -> a) | function |
-> (a -> a -> Bool) | break rule |
-> a | initial value |
-> a | result |