Connecting Tech Pros Worldwide Help | Site Map

how to evaluate user defined functions?

  #1  
Old March 14th, 2006, 03:25 PM
Viktor Winschel
Guest
 
Posts: n/a
Hi,

I need to input user defined functions,
lets say f(x,y)=log(x)+exp(y)
from a file at runtime and then evaluate them many times.

Since most of the runtime is spend on evaluating
the function I need a fast way to do it.

thanks

Viktor Winschel
  #2  
Old March 14th, 2006, 03:45 PM
Victor Bazarov
Guest
 
Posts: n/a

re: how to evaluate user defined functions?


Viktor Winschel wrote:[color=blue]
> I need to input user defined functions,
> lets say f(x,y)=log(x)+exp(y)
> from a file at runtime and then evaluate them many times.[/color]

Google for "C++ interpreter". And look in the news archives as well.
[color=blue]
> Since most of the runtime is spend on evaluating
> the function I need a fast way to do it.[/color]

Don't we all?...

V
--
Please remove capital As from my address when replying by mail
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to call user defined TCL procedures from python script? comp.lang.python answers 1 November 21st, 2006 10:25 AM
Clue for writing user-defined aggregate functions neb answers 10 November 13th, 2005 10:46 AM
user defined functions & default parameters Vic Y answers 2 July 23rd, 2005 09:13 AM
Is it possible to use php user function in a single global SQL query? markus answers 8 July 17th, 2005 07:54 AM