函数图像绘制器

 

输入函数表达式(使用JavaScript语法):

预设函数:

函数输入说明

请在输入框中使用JavaScript数学表达式语法,以下是一些常见数学运算的输入方法:

数学运算 输入方法 示例
加、减、乘、除 +、-、*、/ x + 2、x * 3、x / 4
幂运算 ** 或 Math.pow() x**2、Math.pow(x,3)
平方根 Math.sqrt() Math.sqrt(x)
绝对值 Math.abs() Math.abs(x)
三角函数 Math.sin()、Math.cos()、Math.tan() Math.sin(x)、Math.cos(2*x)
指数函数 Math.exp() Math.exp(x)
自然对数 Math.log() Math.log(Math.abs(x))
常用对数 Math.log10() Math.log10(x)
π Math.PI Math.sin(x*Math.PI)
e Math.E Math.pow(Math.E, x)
取整 Math.floor()、Math.ceil()、Math.round() Math.floor(x)

注意:所有函数名区分大小写,必须使用Math对象调用数学函数。