Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
6
Task/Nth-root/Sidef/nth-root-2.sidef
Normal file
6
Task/Nth-root/Sidef/nth-root-2.sidef
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
func nthroot_fast(n, a, precision=1e-5) {
|
||||
{ a = nthroot(2, a, precision) } * int(n-1);
|
||||
a ** (2**int(n-1) / n);
|
||||
}
|
||||
|
||||
say nthroot_fast(5, 34, 1e-64); # => 2.024397458499885042510817245541937419115
|
||||
Loading…
Add table
Add a link
Reference in a new issue