tag:blogger.com,1999:blog-786816577681924169.post8764604393210329308..comments2024-03-08T03:17:46.652-05:00Comments on Abstract Nonsense: Haskell: Implementing a Fractional Data Type and Investigating the Expansion of the Square Root of 2Anonymoushttp://www.blogger.com/profile/06806017873801457510noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-786816577681924169.post-90217879162243183942015-11-26T09:51:31.085-05:002015-11-26T09:51:31.085-05:00Looks neat! A nice generalization is to make Fract...Looks neat! A nice generalization is to make Fraction polymorphic. This leads to Data.Ratio (the native rational / fractions library of haskell). <br /><br />E.g. Then you can define rationals over a finite field.Anonymoushttps://www.blogger.com/profile/02898381097003622186noreply@blogger.com