comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Program caused arithmetic error: Floating illegal operand ; while using MPFIT
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Program caused arithmetic error: Floating illegal operand ; while using MPFIT [message #71206] Sun, 06 June 2010 20:12
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Jun 6, 10:18 pm, pp <parul.pande...@gmail.com> wrote:
> Hi All,
>
> I am using MPFIT to solve a problem and I get this error : Program
> caused arithmetic error: Floating illegal operand.
> The value of my key STATUS is 4, NPRINT = 1, ERRMSG =  is an empty
> string.
> Also the program returns the same value of parameters which were used
> as the starting parameters.
>
> STATUS = 4  indicates a success so can I be sure that the program is
> doing the right thing.

This post got my attention, since I had not written it. I guess I
should have considered that signing as just pp is too short, too
likely to be non unique.

Paulo Penteado
Re: Program caused arithmetic error: Floating illegal operand ; while using MPFIT [message #71207 is a reply to message #71206] Sun, 06 June 2010 19:57 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Jun 6, 9:18 pm, pp <parul.pande...@gmail.com> wrote:
> Hi All,
>
> I am using MPFIT to solve a problem and I get this error : Program
> caused arithmetic error: Floating illegal operand.
> The value of my key STATUS is 4, NPRINT = 1, ERRMSG =  is an empty
> string.
> Also the program returns the same value of parameters which were used
> as the starting parameters.
>
> STATUS = 4  indicates a success so can I be sure that the program is
> doing the right thing.

Set !EXCEPT = 2 to find out where the mathematical exception is
occurring. However, math errors are not always a real problem, even
though they get reported.

This FAQ entry gives some other suggestions
http://cow.physics.wisc.edu/~craigm/idl/fitqa.html#parstep

My guess is that you need to provide with MPFIT with better derivative
step values.

Craig
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Program caused arithmetic error: Floating illegal operand ; while using MPFIT
Next Topic: ms2gt .gpd and .mpp file creation

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 16:47:24 PDT 2025

Total time taken to generate the page: 1.04122 seconds