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

Home » Public Forums » archive » Re: Execute and Call_function of complex things
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: Execute and Call_function of complex things [message #23527 is a reply to message #23526] Thu, 01 February 2001 16:37 Go to previous messageGo to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
Dirk Fabian wrote:
>
> model='exp((-1.)*(0.0 + Gauss1(x,p(0:2)) + Gauss1(x,p(3:5))))'
> result=call_function(model,p)

For this to work, a compiled wrapper would be needed:

function model, p
return, exp((-1.)*(0.0 + Gauss1(x,p(0:2)) + Gauss1(x,p(3:5))))
end

result=call_function('model', p)
; Or simply
result = model(p)

> expstring='model=exp((-1.)*(0.0 + Gauss1(x,p(0:2)) + Gauss1(x,p(3:5))))'
> result=call_function(expstring, p)

For this to work, I think Execute is needed:

expstring='result=exp((-1.)*(0.0 + Gauss1(x,p(0:2)) + Gauss1(x,p(3:5))))'
junk = execute(expstring)

Cheers,
Pavel
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Demo of Shadows
Next Topic: Re: IDL employment in Front Range

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

Current Time: Fri Oct 10 02:16:18 PDT 2025

Total time taken to generate the page: 1.12112 seconds