[pstricks] sqrt function
dpstory at uakron.edu
dpstory at uakron.edu
Sun Mar 14 19:34:20 CET 2004
Looks like you are graphing the function f(x) = \sqrt{x-2}
over the interval [0,6]. This function is only defined (for real values)
for x \ge 2.
dps
On 14 Mar 2004 at 19:13, Richard J. Cattien wrote:
> 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
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list