本文介绍了gnuplot不会绘制函数sqrt(2/10)* sin((3.14/10)* x)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Gnuplot似乎无法绘制函数:
Gnuplot won't seem to draw a function:
sqrt(2/10)*sin((3.14/10)*x)
谁能告诉我为什么.我试图在 Wolfram alpha ,并且在那里完全可以正常工作.
Could anyone tell me why. I tried to draw it in Wolfram alpha and it worked compleetely fine there.
推荐答案
2/10
很有可能被计算为整数除法,并将其他所有内容归零.
Most probably the 2/10
is computed as integer division and zeros everything else out.
将其更改为:
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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!