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

Home » Public Forums » archive » Problem with mpfit.pro
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: Problem with mpfit.pro [message #89397 is a reply to message #89396] Mon, 06 October 2014 22:44 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Den tisdagen den 7:e oktober 2014 kl. 01:26:26 UTC+2 skrev Payam Bagheri:
> Hi there,
>
>
>
> Has anyone worked with the fitting procedure mpfit.pro in IDL? When my fitting function exceeds around 3600 characters (I have to use really large fitting functions) the code gives me this error:
>
>
>
> % MPFITEXPR: ERROR: execution of "The FUNCTION" failed
>
> % MPFITEXPR: check syntax and parameter usage
>
>
>
> Has any seen this and knows a work-around?
>
>
>
> Thanks,
>
> Payam

According to your error message, you are not using mpfit directly, you are using mpfitexpr. Mpfitexpr allows you to specify the function to minimize as a string but that is only useful for simple expressions.

If you use mpfit directly, you can specify your function as an idl function and specify just the name of it in the call to mpfit. Then there is no limit to how complicated your fitting function can be.

(OK, I guess there is a limit but it's not 3600 characters...)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: I can only view my plot when I press control+c
Next Topic: plot position keyword

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

Current Time: Wed Oct 08 18:18:04 PDT 2025

Total time taken to generate the page: 0.00194 seconds