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

Home » Public Forums » archive » Alternative to EXECUTE?
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: alternative to execute [message #47294 is a reply to message #47203] Wed, 01 February 2006 03:01 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
Thanks very much, Robbie, for your detailed reply. Unfortunately, it's
not 300 functions that I have, but 300 parameters. I couldn't enumerate
the set of possible functions. So I don't think I could apply your
method (if I've understood it correctly).

I got a suggestion by email (thanks, Matt) to use call_function.

What I don't have a solution for, is how to handle operator precedence
and simple arithmetic operators -

e.g. result = (b001 + b002) / b003 + sqrt(b004) + b005^2 (unrealistic,
but demonstrative example)

'execute' would have managed all that for me. If I do it using
call_function, it looks to me like I'll have to write code to pull out
the brackets, apply each type of operator and function in the right
order. call_function would handle only the 'sqrt' (when I got that far)
- or am I wrong?

Maybe it's not such a difficult task to write this code, but a pity
since IDL already knows how to do it!

greg
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiple Axes
Next Topic: Perpendicular symbol

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

Current Time: Sun Nov 30 08:56:34 PST 2025

Total time taken to generate the page: 1.11125 seconds