# [pstricks] pst-func: unexpected result.

Andres Morales andres_morales_p at yahoo.com
Tue Nov 13 23:00:44 CET 2018

Hello everyone,
I have been trying to duplicate one of the figures shown in the pst-func tutorial v.0.89 dated April 8, 2018 written by Herbert Voss.
I am referring to figures on pages 31 and 32.
Both files run perfectly but neither show the functions psCi, psci, psSi, and pssi.
The code for the one on page 32 is copied below (copied and pasted from the tutorial)
\documentclass{article} \usepackage{pst-func}\parindent=0pt\pagestyle{empty}\begin{document}
\def\pshlabel#1{\footnotesize#1} \def\psvlabel#1{\footnotesize#1}\psset{xunit=0.5}\begin{pspicture}(-15,-4.5)(15,2)\psaxes[dx=1cm,Dx=2]{->}(0,0)(-15.1,-4)(15,2)\psplot[plotpoints=1000]{-14.5}{14.5}{ x RadtoDeg sin x div }\psSi[plotpoints=1500,linecolor=red,linewidth=1pt]{-14.5}{14.5}\pssi[plotpoints=1500,linecolor=blue,linewidth=1pt]{-14.5}{14.5}\rput(-5,1.5){\color{red}$Si(x)=\int\limits_{0}^x \frac{\sin(t)}{t}\mathrm{d}t$}\rput(8,-1.5){\color{blue}$si(x)=-\int\limits_{x}^{\infty} \frac{\sin(t)}{t}\mathrm{d}t=Si(x)-\frac{\pi}{2}$}\rput(8,.5){$f(x)= \frac{\sin(t)}{t}$}\end{pspicture}
\end{document}
The document is compiled through: dvi to ps to pdf.
All run ok but the last step shows on the console:
Command Line:   ps2pdf.exe "pstfunc021a.ps"Startup Folder: C:\Andres\LaTeX_Tests\TeXFiles\Tests\PSTricks\ExercisesPS-Trick-Fun
Error: /undefinedresult in --div--Operand stack:   -206.282   #INF.0   35Execution stack:   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   2015   1   3   %oparray_pop   2014   1   3   %oparray_pop   1998   1   3   %oparray_pop   1884   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   %loop_continue   --nostringval--Dictionary stack:   --dict:969/1684(ro)(G)--   --dict:0/20(G)--   --dict:168/200(L)--   --dict:186/300(L)--   --dict:38/200(L)--   --dict:130/200(L)--   --dict:53/100(L)--Current allocation mode is localCurrent file position is 279828MiKTeX GPL Ghostscript 9.25: Unrecoverable error, exit code 1

The PSF picture shows only the plot with the instruction \psplot[plotpoints=1000]{-14.5}{14.5}{ x RadtoDeg sin x div }
Another question: How to get in all the graphs with differential in integrals the upright d? an instruction in the preamble?I had to change to the code shown above to get it right.
My apologies for this, so long, email,
Any help is appreciated.
Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/pstricks/attachments/20181113/be85dc7a/attachment.html>