Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solving a math function

Status
Not open for further replies.

saintone1

Technical User
Feb 19, 2002
10
IE
Hi,
I am having trouble solving a math function and putting the results into an array.
The differential equation is as a follows:
------
dh(t)= -c/2gh(t) 1
---- --------- + -------u(t)
dt A(h(t)) A(h(t))

when i get this done, the array will be passed to a vb program, to display the results.
If anyone has any ideas how i would do this, any at all, i would be very gratefull.
Thanks,
Joseph

support@josephquinn.com

 
Am I wrong or you could reduce your formula to this...
dh(t)= -c/2gh(t) * u(t)
---- ----------------
dt A(h(t))

and then create this function...
double f(int t){
return ([YOUR FORMULA]);
}

now use it...
void main(){
double arr[NB];
for(int i=0; i<NB; ++i){
arr = f(i);
}
}




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top