Steepest Descent Method



pubudu thilan <pubudupbd at gmail.com> writes:
> Dear all,
>
> I wrote a program in Maxima for Steepest Descent Method. When executing
> that program, an error occurs. Please be kind enough to help me to correct
> this error. The program code has been attached herewith.

Hi,

I reformatted your code as a normal Maxima file, since I don't use
wxMaxima and the wxm was really hard to read. I've attached the
resulting code. I haven't gone through your code carefully, but it just
looks like your "dg" (gradient?) has gone to zero, then you try to
divide by it. I added one extra print line just before the error, which
makes it obvious what's going on.

Rupert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gradient.mac
Type: application/octet-stream
Size: 1013 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20121127/27872b82/attachment.obj>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20121127/27872b82/attachment.pgp>;