Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
11
Task/Nth-root/Dart/nth-root.dart
Normal file
11
Task/Nth-root/Dart/nth-root.dart
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import 'dart:math' show pow;
|
||||
|
||||
num nroot(num value, num degree) {
|
||||
return pow(value, (1 / degree));
|
||||
}
|
||||
|
||||
void main() {
|
||||
int n = 15;
|
||||
num x = pow(-3.14159, 15);
|
||||
print('root($n, $x) = ${nroot(n, x)}');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue