gnuplot won't draw a function sqrt(2/10)*sin((3.14/10)*x)

后端 未结 1 1427
抹茶落季
抹茶落季 2021-01-21 17:33

Gnuplot won\'t seem to draw a function:

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

Could anyone tell me why. I tried to draw it in Wolfram alpha and it worked

相关标签:
1条回答
  • 2021-01-21 17:59

    Most probably the 2/10 is computed as integer division and zeros everything else out.

    Change it to:

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

    Or:

    sqrt(0.2)*sin(0.314*x)
    
    0 讨论(0)
提交回复
热议问题