1
0
mirror of https://github.com/balkian/my_calculator.git synced 2024-11-21 14:52:29 +00:00

integrate master

This commit is contained in:
J. Fernando Sánchez 2019-01-29 10:53:36 +01:00
commit adbee61e33

View File

@ -9,6 +9,10 @@ function sin() {
var num = document.getElementById("n1"); var num = document.getElementById("n1");
num.value = Math.sin(num.value); num.value = Math.sin(num.value);
} }
function fourth() {
var num = document.getElementById("n1");
num.value = Math.pow(num.value, 4);
}
</script> </script>
</head> </head>
<body> <body>
@ -17,5 +21,6 @@ Number:
<input type="text" id="n1"><p> <input type="text" id="n1"><p>
<button onclick="cube()"> x^3 </button> <button onclick="cube()"> x^3 </button>
<button onclick="sin()"> sin(x) </button> <button onclick="sin()"> sin(x) </button>
<button onclick="fourth()"> x^4 </button>
</body> </body>
</html> </html>