From 4cb37aeefbf5b1724f145bda16b9a0e229246e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Tue, 29 Jan 2019 10:51:04 +0100 Subject: [PATCH] sin(x) button --- calculator.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calculator.html b/calculator.html index ff410ab..6a7646e 100644 --- a/calculator.html +++ b/calculator.html @@ -17,6 +17,10 @@ function fourth() { var num = document.getElementById("n1"); num.value = Math.pow(num.value, 4); } +function sin() { + var num = document.getElementById("n1"); + num.value = Math.sin(num.value); +} @@ -27,5 +31,6 @@ Number: +