mirror of
https://github.com/balkian/my_calculator_2.git
synced 2024-11-25 00:32:29 +00:00
x^4 button
This commit is contained in:
parent
5af6569228
commit
053a915794
@ -13,6 +13,10 @@ function inverse() {
|
||||
var num = document.getElementById("n1");
|
||||
num.value = Math.pow(num.value, -1);
|
||||
}
|
||||
function fourth() {
|
||||
var num = document.getElementById("n1");
|
||||
num.value = Math.pow(num.value, 4);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@ -22,5 +26,6 @@ Number:
|
||||
<button onclick="cube()"> x^3 </button>
|
||||
<button onclick="square()"> x^2 </button>
|
||||
<button onclick="inverse()"> 1/x </button>
|
||||
<button onclick="fourth()"> x^4 </button>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user