Nth root: Difference between revisions
Content deleted Content added
m →{{header|Haskell}}: Minor update to format of output. |
|||
Line 1,490: | Line 1,490: | ||
until |
until |
||
(uncurry (==)) |
(uncurry (==)) |
||
(\xy -> |
|||
⚫ | |||
let pn = pred n |
|||
⚫ | |||
(x, x / n) |
(x, x / n) |
||
-------------------------- TESTS -------------------------- |
-------------------------- TESTS -------------------------- |
||
Line 1,504: | Line 1,505: | ||
(uncurry nthRoot) |
(uncurry nthRoot) |
||
[(2, 2), (5, 34), (10, 734 ^ 10), (0.5, 7)] |
[(2, 2), (5, 34), (10, 734 ^ 10), (0.5, 7)] |
||
-------------------- FORMAT OF RESULTS -------------------- |
-------------------- FORMAT OF RESULTS -------------------- |