<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Myriad Pro">Dear Hubert,<br>
<br>
this could be of interest for your subjects ...<br>
<br>
\documentclass{article}<br>
\usepackage{pstricks-add}<br>
\begin{document}<br>
\begin{pspicture}(-1.5,-0.5)(4.5,7.5)<br>
\pstVerb{%<br>
/funcf {0.5 mul neg Euler exch exp 6 mul}&nbsp; def<br>
/funcg {0.5 mul Euler exch exp 0.5 mul}&nbsp; def<br>
/x1 0 def<br>
/x2 1 def<br>
/x3 2 def<br>
/x4 3 def<br>
/x5 4 def<br>
}<br>
\psaxes{-&gt;}(0,0)(-0.5,-1.5)(5.5,7.5)<br>
\psplot[linecolor=blue]{0}{5}{x funcf}<br>
\psplot[linecolor=red]{0}{5}{x funcg}<br>
\psdot(!x1 dup funcf)<br>
\psdot(!x2 dup funcf)<br>
\psdot(!x3 dup funcf)<br>
\psdot(!x4 dup funcf)<br>
\psdot(!x5 dup funcf)<br>
\psdot(!x1 dup funcg)<br>
\psdot(!x2 dup funcg)<br>
\psdot(!x3 dup funcg)<br>
\psdot(!x4 dup funcg)<br>
\psdot(!x5 dup funcg)<br>
\end{pspicture}<br>
\end{document}<br>
<br>
<br>
Regards,<br>
<br>
Juergen<br>
</font><br>
Hubert Lam wrote:
<blockquote cite="mid:47D1CCEE.5070800@hubertlam.fastmail.com.au"
 type="cite">
  <pre wrap="">Alan Ristow wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hubert Lam wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Given that the usage of \psplot (excluding options) is

\psplot{x_min}{x_max}{PS code for function}


is there a mechanism that I'm not aware of that will allow the effects 
of this:

\usepackage{pstricks,pst-math}
\def\PiFour{PI 4 div}
\psplot{0}{\PiFour}{x SIN}
      </pre>
    </blockquote>
    <pre wrap="">Yes. I suppose there's more than one way to do it, but the way I would 
do this is (untested):
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Thank you gentlemen -- Jurgen's way is correct. That will make life MUCH 
easier now! :)

Perhaps for the next example of the pstricks user manual might have more 
  examples on using PostScript code? I'm happy to contribute especially 
with things like

\def\Func{x COS}
\psdot(!4 PI mul 7 div /x 4 PI mul 7 div def \Func)

where the dot is created at (4pi/7, cos(4pi/7)). This I learnt from 
looking at one of Herbert Voss' examples on tug.org/pstricks and would 
be helpful to teachers/academics who are drawing curves.
_______________________________________________
pstricks mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pstricks@tug.org">pstricks@tug.org</a>
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a>


  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="65">-- 
 J&uuml;rgen Gilg
 Austr. 59
 70376 Stuttgart
-------------------------------------
 Tel       0711.59 27 88
 e-Mail    <a class="moz-txt-link-abbreviated" href="mailto:gilg@acrotex.net">gilg@acrotex.net</a>
 Websites  <a class="moz-txt-link-abbreviated" href="http://www.acrotex.net">www.acrotex.net</a>
           <a class="moz-txt-link-abbreviated" href="http://www.brueckenkurs-physik.de">www.brueckenkurs-physik.de</a>
           <a class="moz-txt-link-abbreviated" href="http://www.gilligan-online.de">www.gilligan-online.de</a>
</pre>
</body>
</html>