点击下面的示例表达式,它们将被追加到输入框中。
基本的算术运算符,包括加、减、乘、除和括号。
(2+3)*4 10 / 3 2 * 3 10 - 5 2 + 3常见的数学函数,如幂运算、平方根、对数、指数等。
Math.pow(2, 3) Math.sqrt(16) Math.sin(Math.PI/2) Math.cos(Math.PI) Math.tan(Math.PI/4) Math.log(10) Math.exp(1) Math.floor(3.7) Math.ceil(3.2) Math.abs(-5) Math.round(3.5)生成随机数的函数。
Math.random() * 100