License | MIT |
---|---|

Maintainer | Joe Leslie-Hurd <joe@gilith.com> |

Stability | provisional |

Portability | portable |

Safe Haskell | Safe |

Language | Haskell98 |

# Documentation

newtype ContinuedFraction Source

convergentsFn :: (Natural -> a) -> (a -> a -> a) -> (a -> a -> a) -> [Natural] -> a -> a -> [a] Source

numerators :: (Natural -> a) -> (a -> a -> a) -> (a -> a -> a) -> ContinuedFraction -> [a] Source

denominators :: (Natural -> a) -> (a -> a -> a) -> (a -> a -> a) -> ContinuedFraction -> [a] Source

convergents :: (Natural -> a) -> (a -> a -> a) -> (a -> a -> a) -> (a -> a -> a) -> ContinuedFraction -> [a] Source

unstableConvergents :: Eq a => [a] -> [a] Source

fractionalConvergents :: Fractional a => ContinuedFraction -> [a] Source

fromRealFrac :: RealFrac a => a -> ContinuedFraction Source