[pstricks] pst-plot commands
na199 at worldonline.de
na199 at worldonline.de
Wed Nov 28 18:46:15 CET 2001
On 28 Nov 2001, at 12:46, Jose Antonio wrote:
> Hi all:
>
> How can I plot in the same curve other curves. i.e. :
> f(x)= (1/x^12) - (1/x^6) --> Lennard-Jones potential
Put the following in the formula part of psplot
1 x 12 exp div 1 x 6 exp div sub
You might have to play around with the ysize and xsize
This does the following:
1) x power 12
2) Divide 1 by the result of 1)
3) x power 6
4) divide 1 by result of 3)
5) subtract result 4 from result 2
> g(x)=(1/x^12) ---> Repulsive part h(x)=-(1/x^6) --->
> Attractive part
> I don't understand very the order of the command: div sub exch ... and
> finally where can I get this information.
>
> Thanks in advance.
> jamr
Get a short course from a math enthusiast in Reversed Polish
Notation, takes may be 10 minutes!
bye
hh
>
More information about the PSTricks
mailing list