von AbcAeffchen » Sa 2. Okt 2010, 14:49
\documentclass[a5paper]{book}
\usepackage{pstricks,pstricks-add}
\begin{document}
\psset{xunit=0.6cm,yunit=0.3cm,algebraic=true,dotstyle=o,dotsize=3pt 0,linewidth=0.4pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-5.5,-5.5)(4.5,6.5)
\psaxes[labelFontSize=\scriptstyle,xAxis=true,yAxis=true,Dx=1,Dy=2,ticksize=-2pt 0,subticks=0]{->}(0,0)(-5.5,-6)(4.5,6.5)
\psplot[plotpoints=50]{-5.5}{-5.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-4.99999}{-4.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-3.99999}{-3.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-2.99999}{-2.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-1.99999}{-1.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-0.99999}{-0.00001}{GAMMA(x)}
\psplot[plotpoints=500]{0.00001}{6.5}{GAMMA(x)}
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-1,-6)(-1,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-2,-6)(-2,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-3,-6)(-3,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-4,-6)(-4,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-5,-6)(-5,6)
\psdots[dotsize=2pt 0,dotstyle=*](1,1)
\rput[bl](0.8,1.25){$\scriptstyle 0!$}
\psdots[dotsize=2pt 0,dotstyle=*](2.,1)
\rput[bl](1.8,1.3){$\scriptstyle 1!$}
\psdots[dotsize=2pt 0,dotstyle=*](3,2)
\rput[br](3.1,2.3){$\scriptstyle 2!$}
\psdots[dotsize=2pt 0,dotstyle=*](4,6)
\rput[br](3.85,5.8){$\scriptstyle 3!$}
\end{pspicture*}
\end{document}
Das sieht jetzt viel aus ist aber nur die Funktion. Ich habe sie abschnittsweise definiert, weil es sonst schrecklich aussieht an den Polstellen.
Damit man den Fehler sieht muss man das dokument ausdrucken. Also zumindest hab ich den Fehler dann.
Gruß AbcAeffchen
[code]\documentclass[a5paper]{book}
\usepackage{pstricks,pstricks-add}
\begin{document}
\psset{xunit=0.6cm,yunit=0.3cm,algebraic=true,dotstyle=o,dotsize=3pt 0,linewidth=0.4pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-5.5,-5.5)(4.5,6.5)
\psaxes[labelFontSize=\scriptstyle,xAxis=true,yAxis=true,Dx=1,Dy=2,ticksize=-2pt 0,subticks=0]{->}(0,0)(-5.5,-6)(4.5,6.5)
\psplot[plotpoints=50]{-5.5}{-5.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-4.99999}{-4.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-3.99999}{-3.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-2.99999}{-2.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-1.99999}{-1.00001}{GAMMA(x)}
\psplot[plotpoints=50]{-0.99999}{-0.00001}{GAMMA(x)}
\psplot[plotpoints=500]{0.00001}{6.5}{GAMMA(x)}
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-1,-6)(-1,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-2,-6)(-2,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-3,-6)(-3,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-4,-6)(-4,6)
\psline[linewidth=0.4pt,linestyle=dashed,dash=3pt 3pt](-5,-6)(-5,6)
\psdots[dotsize=2pt 0,dotstyle=*](1,1)
\rput[bl](0.8,1.25){$\scriptstyle 0!$}
\psdots[dotsize=2pt 0,dotstyle=*](2.,1)
\rput[bl](1.8,1.3){$\scriptstyle 1!$}
\psdots[dotsize=2pt 0,dotstyle=*](3,2)
\rput[br](3.1,2.3){$\scriptstyle 2!$}
\psdots[dotsize=2pt 0,dotstyle=*](4,6)
\rput[br](3.85,5.8){$\scriptstyle 3!$}
\end{pspicture*}
\end{document}[/code]
Das sieht jetzt viel aus ist aber nur die Funktion. Ich habe sie abschnittsweise definiert, weil es sonst schrecklich aussieht an den Polstellen.
Damit man den Fehler sieht muss man das dokument ausdrucken. Also zumindest hab ich den Fehler dann.
Gruß AbcAeffchen