learning how to use mpfit,. need help [message #87740] |
Tue, 25 February 2014 13:35  |
alkyl47
Messages: 2 Registered: February 2014
|
Junior Member |
|
|
Hi
I am new to idl and learning how to use mpfit but run into error, please help if you have time.
IDL version 6.3
////////////////////
IDL> x = findgen(101)
IDL> y = 25.*exp(-(x-32.)^2/(2*5.^2))+2.*randomn(0,101)
% Program caused arithmetic error: Floating underflow
///////////////////
these are the tutorial from the daedalus.as.arizona.edu group.
thanks in advance.
LR
|
|
|
|
|
|
Re: learning how to use mpfit,. need help [message #87748 is a reply to message #87740] |
Tue, 25 February 2014 20:13  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
On Tuesday, February 25, 2014 4:35:53 PM UTC-5, alk...@gmail.com wrote:
> IDL> y = 25.*exp(-(x-32.)^2/(2*5.^2))+2.*randomn(0,101)
> % Program caused arithmetic error: Floating underflow
Floating underflow is almost never an error. It's just warning you that exp(-large_number) far from the centroid of the gaussian, has truncated precision or is being set to zero. Plot your data and you will see it's fine.
Craig
|
|
|