Integer roots: Difference between revisions
m
→{{header|Arturo}}
(Add Factor) |
Drkameleon (talk | contribs) |
||
Line 23:
{{trans|D}}
<lang
if b<2
n1: n-1
n2: n
Line 31:
c: 1
d: (n3+b)/n2
e: ((n3*d) + b/d^n1)/n2
c: d
d: e
e: ((n3*e) + b/e^n1)/n2
if d<e
return e
]
print ["3rd root of 8
print ["3rd root of 9
print ["First 2001 digits of the square root of 2
{{out}}
<pre>3rd root of 8
3rd root of 9
First 2001 digits of the square root of 2
=={{header|C}}==
|