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 #89400 is a reply to message #89396] Tue, 07 October 2014 08:27 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Monday, October 6, 2014 7:26:26 PM UTC-4, Payam Bagheri wrote:
>
> 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?

It means your string is not a valid IDL expression. The expression must be able to be EXECUTE()ed by IDL. I guess it is possible that IDL has a limit on the string size, but I don't know.

If you have a complicated function, you should be using MPFITFUN. Write your expression into a function once, and use that instead.

Craig
[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 16:04:04 PDT 2025

Total time taken to generate the page: 0.00184 seconds