|
From: <ma...@my...> - 2013-04-11 07:45:37
|
I have the following code:
f(x) = -1 + (2/x)*(((1-((2/3)*x**2))*exp(-x)) + \
((1+x)*exp(-2*x))) /\
(1 + ((1+x+((1/3)*x**2))*exp(-x)))
set samples 500
set xrange [0.1:6]
set yrange [-1.2:0]
plot f(x)
The plot is not as expected (see attachment g1.png). But,if I use the same
expression, compute the values externally and then plot those values, the
graph is as expected (attachment g2.png).
Any pointers would be helpful.
Regards,
mas |