Re: Program caused arithmetic error: Floating illegal operand ; while using MPFIT [message #71206] |
Sun, 06 June 2010 20:12 |
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  |
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
|
|
|