[pstricks] x/x in pstricks

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Sep 27 06:47:48 CEST 2010


Am 27.09.2010 01:07, schrieb mathias legrand:
> Hi all,
> 
> please have a look at the code below. What are existing strategies to
> avoid the inconsistency? postscript does not know what to do with
> (x+y)/(x+y) in (x,y)=(0,0). 

use the Div operator instead of div. For algebraic
equations use the ifTE operator

Herbert

> \documentclass{article}
> \usepackage{pst-solides3d}
> \pagestyle{empty}
> \begin{document}
> 
> \begin{pspicture}(-4,-5)(6,8)
> \psset{lightsrc=40 25 140,viewpoint=50 -45 30 rtp2xyz,Decran=60,unit=0.5}
> % will compile
> \psSurface[ngrid=.7
> .7,incolor=yellow,linewidth=0.1\pslinewidth,fillcolor=red!15,Zmin=-8,Zmax=8](-4.1,-4)(4,4){y
> x add x y add div}
> % won't compile
> \psSurface[ngrid=.7
> .7,incolor=yellow,linewidth=0.1\pslinewidth,fillcolor=red!15,Zmin=-8,Zmax=8](-4,-4)(4,4){y
> x add x y add div}


More information about the PSTricks mailing list