Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Nth-root/Maxima/nth-root.maxima
Normal file
13
Task/Nth-root/Maxima/nth-root.maxima
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
nth_root(a, n) := block(
|
||||
[x, y, d, p: fpprec],
|
||||
fpprec: p + 10,
|
||||
x: bfloat(a),
|
||||
eps: 10.0b0^-p,
|
||||
y: do (
|
||||
d: bfloat((a / x^(n - 1) - x) / n),
|
||||
if abs(d) < eps * x then return(x),
|
||||
x: x + d
|
||||
),
|
||||
fpprec: p,
|
||||
bfloat(y)
|
||||
)$
|
||||
Loading…
Add table
Add a link
Reference in a new issue