[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*Subject*: Re: Execute and Call_function of complex things*From*: dirk(at)uwast.astro.wisc.edu (Dirk Fabian)*Date*: 1 Feb 2001 22:44:26 GMT*Newsgroups*: comp.lang.idl-pvwave*Organization*: University of Wisconsin - Astronomy Department*References*: <95co5g$fjq$1@news.doit.wisc.edu>*Xref*: news.doit.wisc.edu comp.lang.idl-pvwave:23358

... Sorry that didn't post. Ok, once again. This goes in the "why doesn't it work like i think it should" category. Suppose I have an expression which, for the sake of argument, looks something like: exp((-1.)*(0.0 + Gauss1(x,p(0:2)) + Gauss1(x,p(3:5)))) where gauss1 is another function (of x) and p is a set of input parameters. I want to evaluate this function, but can't seem to do it with either call_function or execute. I've tried: model='exp((-1.)*(0.0 + Gauss1(x,p(0:2)) + Gauss1(x,p(3:5))))' result=call_function(model,p) and expstring='model=exp((-1.)*(0.0 + Gauss1(x,p(0:2)) + Gauss1(x,p(3:5))))' result=call_function(expstring,p) to no effect... What am i missing about call_function or execute? Do all the elements of the evaluated function need to be IDL native? Does the conversion of a string to a function make anyone else uneasy? Thanks for any help! - Dirk

**Follow-Ups**:**Re: Execute and Call_function of complex things***From:*Pavel A. Romashkin

**Re: Execute and Call_function of complex things***From:*Craig Markwardt

- Prev by Date:
**SEC : U Re: Hi, My Name is David. And I'm a Lurker** - Next by Date:
**Re: Execute and Call_function of complex things** - Prev by thread:
**Re: IDL employment in Front Range** - Next by thread:
**Re: Execute and Call_function of complex things** - Index(es):