Copyright | (c) Michal Konecny |
---|---|
License | BSD3 |
Maintainer | mikkonecny@gmail.com |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Pointwise sine and cosine for functions
Synopsis
- sineWithAccuracyGuide :: _ => Accuracy -> f -> f
- cosineWithAccuracyGuide :: _ => Accuracy -> f -> f
- sineCosineWithAccuracyGuide :: _ => Bool -> Accuracy -> f -> f
- sineTaylorSum :: _ => (Accuracy -> f) -> MPBall -> Accuracy -> (f, ErrorBound, Integer)
- cosineTaylorSum :: _ => (Accuracy -> f) -> MPBall -> Accuracy -> (f, ErrorBound, Integer)
- sineCosineTaylorSum :: _ => Bool -> (Accuracy -> f) -> MPBall -> Accuracy -> (f, ErrorBound, Integer)
Documentation
sineWithAccuracyGuide :: _ => Accuracy -> f -> f Source #
cosineWithAccuracyGuide :: _ => Accuracy -> f -> f Source #
sineCosineWithAccuracyGuide :: _ => Bool -> Accuracy -> f -> f Source #
sineTaylorSum :: _ => (Accuracy -> f) -> MPBall -> Accuracy -> (f, ErrorBound, Integer) Source #
For a given polynomial p
, compute a partial Taylor sum of cos(p)
and return
it together with its error bound e
and the degree of the polynomial n
.
cosineTaylorSum :: _ => (Accuracy -> f) -> MPBall -> Accuracy -> (f, ErrorBound, Integer) Source #
For a given polynomial p
, compute a partial Taylor sum of cos(p)
and return
it together with its error bound e
and the degree of the polynomial n
.
sineCosineTaylorSum :: _ => Bool -> (Accuracy -> f) -> MPBall -> Accuracy -> (f, ErrorBound, Integer) Source #