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