add cos funtion

This commit is contained in:
Sabrina 2020-10-25 16:52:27 +08:00
parent 85202dedd8
commit e396b2321a

View File

@ -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>