[pstricks] sqrt function

Richard J. Cattien rc.foreign at gmx.net
Sun Mar 14 19:13:50 CET 2004


Hi,

How do i plot the following function.

	y = sqrt(x-2)

I always get an error:
Error: /rangechek in --sqrt--
Operand stack:
0.0    -2

I use:
\psplot[plotpoints=200]{0}{6}{x 2 sub sqrt}

with add instead of sub everything works fine.

thanks for every answer!

bye,
	richard

-- 
Richard Cattien,
PGP-Public-Key: http://cattien.org/richard/keys/rc_pubkey.asc



More information about the PSTricks mailing list