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

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

Stability | provisional |

Portability | portable |

Safe Haskell | Safe |

Language | Haskell98 |

# Documentation

newtype ContinuedFraction Source #

## Instances

Eq ContinuedFraction Source # | |

Defined in Arithmetic.ContinuedFraction (==) :: ContinuedFraction -> ContinuedFraction -> Bool # (/=) :: ContinuedFraction -> ContinuedFraction -> Bool # | |

Show ContinuedFraction Source # | |

Defined in Arithmetic.ContinuedFraction showsPrec :: Int -> ContinuedFraction -> ShowS # show :: ContinuedFraction -> String # showList :: [ContinuedFraction] -> ShowS # |

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 #

toDouble :: ContinuedFraction -> Double Source #

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