Anonymous user
Integer roots: Difference between revisions
→{{header|Julia}}: fixed bug, made it more Julian
Drkameleon (talk | contribs) |
(→{{header|Julia}}: fixed bug, made it more Julian) |
||
Line 463:
=={{header|Julia}}==
{{works with|Julia|
{{trans|Python}}
<lang julia>function iroot(a, b)
a1, c = a - 1, 1
d = (a1 * c + b ÷
e = (a1 * d + b ÷
while
c, d, e = d, e, (a1 * e + b ÷ (e ^ a1)) ÷ a
end
end
|