# [pstricks] postscript language to launch a rocket ?

mathias legrand legrand.mathias at gmail.com
Mon Jul 12 18:01:06 CEST 2010

Hi all,

it looks like when above several digits, calculations within pstricks or
postscript (?)
become difficult. Is there a way to correct this ?

\documentclass{book}
\usepackage{lmodern}
\usepackage[top=3cm,left=3cm,right=3cm,bottom=2.5cm,a4paper]{geometry}

\begin{document}
\begin{figure}[htp]
\centering
\psset{xunit=0.08,yunit=1.3}
\def\Exp{2.7182818284590452353602875}
\begin{pspicture}(0,-1.3)(84.3,1.3)
\psframe[fillstyle=solid,fillcolor=gray!10,linestyle=none](0,-1.3)(84.3,1.3)
\psclip{\psframe[linestyle=none](-0.5,-1.3)(84.3,1.3)}
\psline[linecolor=gray!50](0,0)(84.3,0)
\psline[linecolor=gray!50](0,-1.29)(0,1.29)
\psplot[linewidth=1.25pt,algebraic=true,linecolor=red,plotpoints=500,linearc=.001]{0}{84.3}{(1/6402373705728000)*\Exp^(-(1/2)*x)*(x^18+6402373705728000-324*x^17+46818*x^16-3995136*x^15+224726400*x^14-8809274880*x^13+248127909120*x^12-5104345559040*x^11+77203226580480*x^10-857813628672000*x^9+6948290392243200*x^8-40426416827596800*x^7+165074535379353600*x^6-457129482588979200*x^5+816302647480320000*x^4-870722823979008000*x^3+489781588488192000*x^2-115242726703104000*x)}
\endpsclip
\end{pspicture}
\end{figure}

\end{document}

(ps: accordingly, I would not use the postscript language to launch a
rocket, while this is supposedly possible...)