add cos funtion
This commit is contained in:
parent
85202dedd8
commit
e396b2321a
@ -21,7 +21,7 @@
|
|||||||
function minus(a, b) {
|
function minus(a, b) {
|
||||||
return a-b;
|
return a-b;
|
||||||
}
|
}
|
||||||
|
|
||||||
function pow(a, b) {
|
function pow(a, b) {
|
||||||
return Math.pow(a, b);
|
return Math.pow(a, b);
|
||||||
}
|
}
|
||||||
@ -29,6 +29,10 @@
|
|||||||
function abs(a) {
|
function abs(a) {
|
||||||
return Math.abs(a);
|
return Math.abs(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function cos(a) {
|
||||||
|
return Math.cos(a)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user