[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:

\documentclass[11pt,a4paper]{book}
\usepackage{pst-func}
\usepackage{pst-math}
\usepackage{pstricks-add}
\begin{document}
\pstVerb{/PMSINC { dup 0 eq { pop 1 } { dup SIN exch div } ifelse } bind def}
\multido{\rA=0+6.18}{10}{%
\makebox[1em]{\rA}
\makebox[5em]{\psPrintValue{\rA\space SINC}}
\makebox[5em]{\psPrintValue{\rA\space PMSINC}}\\
}
\end{document}



Best ragrds,

Patrice


________________________________
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