Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Nth-root/Logo/nth-root.logo
Normal file
11
Task/Nth-root/Logo/nth-root.logo
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
to about :a :b
|
||||
output and [:a - :b < 1e-5] [:a - :b > -1e-5]
|
||||
end
|
||||
|
||||
to root :n :a [:guess :a]
|
||||
localmake "next ((:n-1) * :guess + :a / power :guess (:n-1)) / n
|
||||
if about :guess :next [output :next]
|
||||
output (root :n :a :next)
|
||||
end
|
||||
|
||||
show root 5 34 ; 2.02439745849989
|
||||
Loading…
Add table
Add a link
Reference in a new issue