Connecting Tech Pros Worldwide Forums | Help | Site Map

how to evaluate user defined functions?

Viktor Winschel
Guest
 
Posts: n/a
#1: Mar 14 '06
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

Victor Bazarov
Guest
 
Posts: n/a
#2: Mar 14 '06

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