|
From: <she...@be...> - 2010-06-07 20:52:59
|
I think gnuplot, like most good software, truncates integer divisions. You might instead try: plot ( (1.0/373.0) - (8.314/40000.0) * log( (2*59)/(x*1013250) + 1 ) )**-1 > > > Hi all, > I tried to plot the following function with gnuplot: > > plot ( (1/373) - (8.314/40000) * log( (2*59)/(x*1013250) + 1 ) )**-1 > > Which gives me the following image: > http://old.nabble.com/file/p28793176/gnuplot.png > > This is NOT how it's supposed to look. Here is how the function really > looks > (matlab): http://old.nabble.com/file/p28793176/matlab.jpg > > Can anyone explain me what I've done wrong? > > Thanks a lot, > Yoel > -- > View this message in context: > http://old.nabble.com/a-function-I-couldn%27t-plot-right-tp28793176p28793176.html > Sent from the Gnuplot - User mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |