<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Dear Herbert!<br>
<br>
Am 13.04.2011 12:05, schrieb Herbert Voss:
<blockquote cite="mid:4DA57565.7010805@FU-Berlin.DE" type="cite">Am
13.04.2011 08:18, schrieb Markus Krebs:
<br>
<br>
<blockquote type="cite">It may be useful for teaching to have a
psNewton-macro
<br>
</blockquote>
<br>
Oh, there are a lot of useful things in the life :-)
<br>
</blockquote>
Yes, indeed. You are part of these "things"! Thank's for your help!
But ..<br>
<blockquote cite="mid:4DA57565.7010805@FU-Berlin.DE" type="cite">
<br>
With the pst-plot from
<br>
<a class="moz-txt-link-freetext" href="http://texnik.dante.de/tex/generic/pst-plot/">http://texnik.dante.de/tex/generic/pst-plot/</a>
<br>
you can use:
<br>
</blockquote>
I've tried. <br>
<blockquote cite="mid:4DA57565.7010805@FU-Berlin.DE" type="cite">
<br>
\documentclass{article}
<br>
\usepackage{pst-plot}
<br>
\begin{document}
<br>
<br>
\def\f{-(1/192)*x^3-(1/12)*x-(1/192)*Pi*x^2-(1/12)*Pi+2}
<br>
\def\fDerive{-(3/192)*x^2-(1/12)-(2/192)*Pi*x}
<br>
<br>
\psset{plotpoints=2000,unit=0.5,algebraic}
<br>
\begin{pspicture*}[showgrid](-20,-10)(8,20)
<br>
\psaxes[Dx=6,Dy=4]{->}(0,0)(-20,-10)(8,20)[$x$,270][$y$,0]
<br>
\psplot[algebraic,linewidth=2pt,linecolor=blue]{-20}{10}{\f}
<br>
\psxTick(-15){x_0}
<br>
\psNewton[linecolor=red,linewidth=0.5pt,showDerivation=false]{-15}{\f}{10}
<br>
%
<br>
%-15, -9.567466932, -4.903526029, 3.026073041, 6.688396612,
5.580230655 (Made by Maple)
<br>
\end{pspicture*}
<br>
<br>
\begin{pspicture*}[showgrid](-20,-10)(8,20)
<br>
\psaxes[Dx=6,Dy=4]{->}(0,0)(-20,-10)(8,20)[$x$,270][$y$,0]
<br>
\psplot[algebraic,linewidth=2pt,linecolor=blue]{-20}{10}{\f}
<br>
\psxTick(-15){x_0}
<br>
\psNewton[linecolor=red,linewidth=0.5pt,showpoints]{-15}{\f}[\fDerive]{10}
<br>
\end{pspicture*}
<br>
<br>
\end{document}
<br>
<br>
<br>
\psNewton{xStart}{Func}[f-Derivation]{steps}
<br>
<br>
Without the optional [f-Derivation] it uses an epsilon of 0.01
<br>
for the derivation
<br>
</blockquote>
*File List*<br>
article.cls 2007/10/19 v1.4h Standard LaTeX document class<br>
size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)<br>
pst-plot.sty 2010/01/22 package wrapper for pst-plot.tex<br>
pstricks.sty 2011/03/27 v0.49 LaTeX wrapper for `PSTricks'
(RN,HV)<br>
ifpdf.sty 2010/01/28 v2.1 Provides the ifpdf switch (HO)<br>
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)<br>
pstricks.tex 2011/03/25 v2.19 `PSTricks' (tvz,hv)<br>
pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval
(HA)<br>
xkeyval.sty 2008/08/13 v2.6a package option processing (HA)<br>
xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)<br>
pst-fp.tex 2011/03/25 v2.19 `PST-fp' (hv)<br>
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)<br>
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive<br>
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)<br>
pst-plot.tex 2011/04/13 1.29 `pst-plot' (tvz,hv)<br>
<br>
Running tex won't come to an end!<br>
<br>
Markus<br>
<br>
<blockquote cite="mid:4DA57565.7010805@FU-Berlin.DE" type="cite">
<br>
Herbert
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
PSTricks mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PSTricks@tug.org">PSTricks@tug.org</a>
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a>
archive: <a class="moz-txt-link-freetext" href="http://www.tug.org/pipermail/pstricks/">http://www.tug.org/pipermail/pstricks/</a></pre>
</blockquote>
</body>
</html>