From e396b2321a0471c3f9ad4ead119a420cd98dae99 Mon Sep 17 00:00:00 2001 From: Sabrina Date: Sun, 25 Oct 2020 16:52:27 +0800 Subject: [PATCH] add cos funtion --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 968fac6..8135a84 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ function minus(a, b) { return a-b; } - + function pow(a, b) { return Math.pow(a, b); } @@ -29,6 +29,10 @@ function abs(a) { return Math.abs(a); } + + function cos(a) { + return Math.cos(a) + }