Author: trungthanh78trungthanh78
Date: Mar 18, 2007 22:33
Hello everyone,
I'm totally new to the group and I would like to learn from you. Thank
you in advance!
I need to write a program to track whether a mathematical function has
changed during run-time or not. The program should work with any
mathematical function provided by users.
Let's take an example in the C language:
//===================================================
//The users define the two parameters a, b as two global variables.
The users can define as many parameters as possible and my program
does not know about this!!!
int a;
int b;
//below is the prototype for our mathematical function
void f(vector x);
//at first, an user wants f = 1x+1y, so he sets the value of a, b
accordingly
a=b=1;
double value=f(x); //calculate the value of function f
|