September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
14
Task/Nth-root/SPL/nth-root.spl
Normal file
14
Task/Nth-root/SPL/nth-root.spl
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
nthr(n,r) <= n^(1/r)
|
||||
|
||||
nthroot(n,r)=
|
||||
a = n/r
|
||||
g = n
|
||||
> g!=a
|
||||
g = a
|
||||
a = (1/r)*(((r-1)*g)+(n/(g^(r-1))))
|
||||
<
|
||||
<= a
|
||||
.
|
||||
|
||||
#.output(nthr(2,2))
|
||||
#.output(nthroot(2,2))
|
||||
Loading…
Add table
Add a link
Reference in a new issue