[pstricks] Weird Graph

Herbert Voss Herbert.Voss at FU-Berlin.DE
Thu Apr 15 09:00:21 CEST 2010


Am 15.04.2010 07:57, schrieb Markus:

> I've got to plot a polynomial. But the greater the x-values got, the
> more weird looks the graph.

cannot see it with the same values as for \psplot:

\documentclass{article}
\usepackage{pst-func}
\begin{document}

\begin{pspicture*}(-1,-1.5)(12,5)
\psaxes{->}(0,0)(-1,-1)(12,5)
\psplot[algebraic,linecolor=red,plotpoints=2000]{0}{12}{-(83/3628800)*x^(10)+(83/60480)*x^9-(271/7560)*x^8+(337/630)*x^7-(868979/172800)*x^6+(29719/960)*x^5-(45555487/362880)*x^4+(4964227/15120)*x^3-(2935221/5600)*x^2+(76345/168)*x-315/2}
\psPolynomial[linecolor=blue,plotpoints=4000,coeff=
-315 2 div
 76345 168 div
-2935221 5600 div
 4964227 15120 div
-45555487 362880 div
 29719 960 div
-868979 172800 div
 337 630 div
-271 7560 div
 83 60480 div
-83 3628800 div
]{0}{12}
\end{pspicture*}
\end{document}

I didn't controlle the calculated values:

> \psPolynomial[algebraic,coeff=-157.5 %
>  +454.43452380952380952 %
>  -524.14660714285714286 %
>  +328.32189153439153439%
>  -125.53870976631393298%
>  +30.957291666666666667%
>  -5.0288136574074074074 %
>  +.53492063492063492063 %
>  -0.035846560846560846561%
>  +0.0013723544973544973545%
>  0.000022872574955908289242%
> ]{0}{12}

Herbert


More information about the PSTricks mailing list