Update index.js
This commit is contained in:
parent
a80c3334a3
commit
97d5446425
1 changed files with 5 additions and 9 deletions
14
index.js
14
index.js
|
@ -13,16 +13,12 @@ function fisqrt(number) {
|
|||
return y;
|
||||
}
|
||||
|
||||
//manual sqrt
|
||||
function msqrt(number) {
|
||||
for (var i = 0; i * i <= number; i++) {
|
||||
if (i * i === number)
|
||||
return i;
|
||||
}
|
||||
return number;
|
||||
//square
|
||||
function sq(n1, n2) {
|
||||
return n1 * n2;
|
||||
}
|
||||
|
||||
//square
|
||||
function sq(number) {
|
||||
//square self
|
||||
function sqs(number) {
|
||||
return number * number;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue