This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
master
RosettaCodeData
/
Task
/
Nth-root
/
Haskell
/
nth-root-1.hs
2 lines
93 B
Haskell
Raw
Permalink
Blame
History
n
`
nthRoot
`
x
=
fst
$
until
(
uncurry
(
==
)
)
(
\
(
_
,
x0
)
->
(
x0
,
(
(
n
-
1
)
*
x0
+
x
/
x0
**
(
n
-
1
)
)
/
n
)
)
(
x
,
x
/
n
)
Reference in New Issue
View Git Blame
Copy Permalink