|
From: Mojca M. <moj...@gm...> - 2011-09-04 16:03:52
|
On Sun, Sep 4, 2011 at 17:44, Anna Lappala wrote:
>
> Dear gnuplot users,
> I have an enquiry related to equations; for instance, I would like to plot the 12-6 lennard-jones equation
>
> with r=1, sigma =1 and global cutoff rc= 1.12
f(r,sigma)=4*((sigma/r)**12-(sigma/r)**6)
plot [0:3] [:5] f(x,1)
What exactly do you mean with global cutoff? That you would like to
stop drawing at 1.12?
g(r,rcut,sigma)=(r<rcut) ? f(r,sigma) : 1/0
plot [0:3] [:5] g(x,1.12,1)
Mojca
|