You are viewing a single comment's thread. Return to all comments →
Look ma - mappend! Haskell snippet:
sol = sortBy (comparing Θ `mappend` comparing r) Θ [x, y] = if a < 0 then a + 2*pi else a where a = atan2 (fromIntegral y) (fromIntegral x) r [x, y] = x^2 + y^2
Seems like cookies are disabled on this browser, please enable them to open this website
Polar Angles
You are viewing a single comment's thread. Return to all comments →
Look ma - mappend! Haskell snippet: