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 #87746 is a reply to message #87740] Tue, 25 February 2014 15:42 Go to previous messageGo to previous message
Harald Frey is currently offline  Harald Frey
Messages: 41
Registered: March 1997
Member
On Tuesday, February 25, 2014 1:35:53 PM UTC-8, alk...@gmail.com wrote:
> 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

Do this in double precision and you will not get the error:

IDL> x = dindgen(101)
IDL> y = 25.*exp(-(x-32.)^2/(2*5.^2))+2.*randomn(0,101)
[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 Nov 28 09:00:37 PST 2025

Total time taken to generate the page: 0.01350 seconds