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

Home » Public Forums » archive » learning how to use mpfit,. need help
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: learning how to use mpfit,. need help [message #87741 is a reply to message #87740] Tue, 25 February 2014 13:44 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
alkyl47@gmail.com writes:

> 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.

Can't help you with MPFIT because I can't even see where you are using
it. I can help with underflow errors, the nemesis of many an IDL
programmer:

http://www.idlcoyote.com/math_tips/underflow.html
http://www.idlcoyote.com/code_tips/underflow.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using a text list to populate a LIST() in IDL
Next Topic: ps_start output

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

Current Time: Fri Oct 10 06:59:32 PDT 2025

Total time taken to generate the page: 2.15794 seconds