开发者

Problems with gnuplot

开发者 https://www.devze.com 2023-03-27 02:54 出处:网络
Not sure if this is the right forum but, I am having problems plotting the following equation under gnuplot:

Not sure if this is the right forum but, I am having problems plotting the following equation under gnuplot:

set xrange [0:10]
set yrange [0:1]
(22/23)**x

All I get is a straight line from the fifth tick of the y-axis (i.e. y=1) to well before the first tick 开发者_运维百科of the x-axis. Any suggestions would be appreciated.


Try

set xrange [0:10]
set yrange [0:1]
set parametric
plot t,(22.0/23.0)**t

Gnuplot will default to integers if you don't add a decimal point, and apparently can't raise integers to a power.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号