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

Home » Public Forums » archive » MPCURVEFIT argument error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
MPCURVEFIT argument error [message #74902] Fri, 04 February 2011 08:19
Josh Fuchs is currently offline  Josh Fuchs
Messages: 1
Registered: February 2011
Junior Member
Using MPCURVEFIT, I am getting the following error:

% MPFIT: Error detected while calling MPFIT_FDJAC2:
% MPFIT: POLY2: Incorrect number of arguments.
% MPFIT: Error condition detected. Returning to MAIN level.
% MPCURVEFIT: Error detected while calling MPFIT_FDJAC2: POLY2:
Incorrect number of arguments.


POLY2 is the function name called with MPCURVEFIT. POLY2 is a
procedure based on POLY. I wrote POLY2 based on the following
documentation for MPCURVEFIT, to make sure I did have the correct
number of arguments:

; The user must define a function which returns the model value. For
; applications which use finite-difference derivatives -- the default
; -- the user function should be declared in the following way:
;
; PRO MYFUNCT, X, P, YMOD
; ; The independent variable is X
; ; Parameter values are passed in "P"
; YMOD = ... computed model values at X ...
; END
;
; The returned array YMOD must have the same dimensions and type as
; the "measured" Y values.

Any thoughts about this? Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: find bimodal maximum in each row
Next Topic: Re: MPCURVEFIT argument error

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

Current Time: Wed Oct 08 09:22:54 PDT 2025

Total time taken to generate the page: 0.00502 seconds