fast-math icon indicating copy to clipboard operation
fast-math copied to clipboard

Typo in comments

Open asmeurer opened this issue 8 years ago • 0 comments

At https://github.com/liyang/fast-math/blob/86573174151c4c683f2d1fb29dbfcb135ac9a2d6/Numeric/FastMath/Approximation.hs#L125 it says

-- NOTE: It is important that these rules should fire after the distributivity
-- rules.  This ensures that
--
-- > x*x+x*y
--
-- gets simplified to
--
-- > x*(x+y)
--
-- rather than 
--
-- > x+x+x*y

Assumedly this should say 2*x + x*y, since x*x != x+x.

asmeurer avatar Dec 02 '15 21:12 asmeurer