Re: passing a function name to a procedure [message #1140] |
Thu, 22 July 1993 03:34 |
csillag
Messages: 7 Registered: July 1993
|
Junior Member |
|
|
In article <marty.743294459@venus>, marty@auriga.rose.brandeis.edu (Marty Stanton) writes:
|> I'm trying to use a idl procedure which requires as input the name of
|> a function which it will find a local minimum for:
|>
|> ; CALLING EXAMPLES:
|> ; minF_parabolic, xa,xb,xc, xmin, fmin, FUNC_NAME="name"
|>
|> this routine uses the function CALL_FUNCTION:
|>
|> fmin = call_function( func_name, pn + xmin * dirn )
|>
|> I haven't been able to find an easy way to do this in PV-WAVE.
|> Does anyone have a solution or any ideas?
|>
|> Thanks
|>
|> marty@dark.rose.brandeis.edu
|>
I would try to use the function EXECUTE in the procedure:
status = Execute( funcName + arumentsList )
All the best, Andre Csillaghy
csillag@astro.phys.ethz.ch
|
|
|