gnuplot 不会绘制函数 sqrt(2/10)*sin((3.14/10)*x)

标签 gnuplot

Gnuplot 似乎不会绘制函数:

sqrt(2/10)*sin((3.14/10)*x)

谁能告诉我为什么。我试着把它画在Wolfram alpha中它在那里工作得很好。

最佳答案

很可能2/10被计算为整数除法并将其他所有内容清零。

将其更改为:

sqrt(2.0/10.0)*sin((3.14/10.0)*x)

或者:

sqrt(0.2)*sin(0.314*x)

关于gnuplot 不会绘制函数 sqrt(2/10)*sin((3.14/10)*x),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15631589/

相关文章:

c++ - 在 C++ 中使用 gnuplot-iostream.h

time - 更改小时格式 gnuplot (减去 12 小时)

latex - matplotlib 中的 gnuplot epslatex 功能

gnuplot 绘制多个折线图

conditional - Gnuplot:带线条的条件绘图($2 == 15 ? $2 : '1/0')

gnuplot - 如何为一个具有多个参数的函数绘制多个图?

c++ - linux/MSVC 2012 中的管道不稳定行为

plot - 使用 gnuplot 在柱坐标系中绘制方程

python - 如何在调用 gnuplot 时保持 PyQt5 响应?

gnuplot - Gnuplot 中四舍五入到前导数字