geometric transformations

Rick Hensh hensh at math.msu.edu
Sun Apr 19 06:30:25 CEST 1998


-----------------------------------------------------------------------------
This is the PSTricks mailing list, devoted to discussions about computational
graphics in (La)TeX using the PSTricks package from Timothy van Zandt.
For help using this mailing list, see instructions at the end of message.
-----------------------------------------------------------------------------

Perhaps someone can help. It is easy to use PSTricks and specials to graph
the function,
say

	y = f[x]

For example, if f[x] = x*(1-x) I've successfully tried

\special{!/myfunction {x dup 1 exch sub mul} bind def}
\psplot[myparem]{-5}{5}{myfunction}

Now I would like to sketch    y = f[x-2]     by trying something like

\psplot[myparem]{-5}{5}{x 2 sub myfunction}

but it doesn't work (I didn't think that it would.

I realize that I could "cheat" and reposition my axes or just redefine my
function but
is it possible to actually "transform" the function?

thanks in advance
ricky

PS. I know I'm supposed to use \pstVerb or \pstverb but I wasn't successful
so I tried
the \special  command.


-----------------------------------------------------------------------------
The list interface (subscription, information, access to the archives) is on:
http://www.tug.org/cgi-bin/lwgate/pstricks
Otherway to unsubscribe, send mail to pstricks-request at mail.tug.org
with a blank subject and in body the line unsubscribe <email-address>
-----------------------------------------------------------------------------



More information about the PSTricks mailing list