-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Allows to approximate the fractional numbers in the range [0.005, 1) or better [0.005, sqrt (2/3)] with sum of two unit fractions of special types. -- -- Inspired by the ancient Egyptian mathematics. See the ideas -- description and formulation in the related draft paper. @package fractionizer @version 0.6.1.0 module UnitFractionsDecomposition2 threeDigitsK :: Double -> Double setOfSolutions :: Double -> [(Double, Double)] -- | Partially defined function, if there is no solutions then returns a -- tuple of undefined. Beter to use suitable21 suitable2 :: Double -> (Double, Double) suitable21 :: Double -> Maybe ([Double], Double) isRangeN :: Double -> Bool check1FracDecomp :: Double -> Maybe ([Double], Double) check3FracDecompPartial :: Bool -> Double -> Maybe ([Double], Double) lessErrSimpleDecomp :: Double -> (Int, Maybe ([Double], Double), Double) lessErrDenoms :: Double -> [Integer]