[pstricks] pst-math

Patrice Mégret Patrice.Megret at umons.ac.be
Thu Aug 27 09:08:54 CEST 2009

Dear Herbert, dear Christoph ,

In the package pst-math, the SINC function is defined as:

/SINC {dup SIN exch Div} with the Div operator from pstricks.pro. In that way, no division by 0 takes place at x=0, but  SINC(0) = 0 instead of 1.

I propose to replace the SINC definition by:

/SINC { dup 0 eq { pop 1 } { dup SIN exch div } ifelse } bind def, which makes the same but gives SINC(0)=1.

Here is an example to illustrate the difference:

\pstVerb{/PMSINC { dup 0 eq { pop 1 } { dup SIN exch div } ifelse } bind def}
\makebox[5em]{\psPrintValue{\rA\space SINC}}
\makebox[5em]{\psPrintValue{\rA\space PMSINC}}\\

Best ragrds,


Important notification: In the context of the creation of the University of Mons, FPMs email address policy is changing from '@fpms.ac.be' to '@umons.ac.be' (or @student.fpms.ac.be to @student.umons.ac.be), please update your contact list accordingly.

Note importante: Dans le cadre de la création de l'Université de Mons, la stratégie d'adresse de courrier électronique de la FPMs change de '@fpms.ac.be' à '@umons.ac.be' (ou @student.fpms.ac.be to @student.umons.ac.be), merci de mettre à jour votre liste d'adresses en conséquence.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20090827/905c2fbb/attachment-0001.html>

More information about the PSTricks mailing list