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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Solving Simultaneous Equations in VB

Status
Not open for further replies.

ninja1980

Technical User
Sep 5, 2008
20
GB
Hi

Another day, another problem.

After all the helpful responses yesterday I thought I ask for some help on the following problem that has been bugging me for quite some time.

I basically need to find the solution for the following simultaneous equations:

Na = (ygo * Ng) + (1-ygo)Nv

a/k*(1/Ng – 1) = Omega(1/Nv – 1)

The only unknowns are Ng and Nv

The only way I can see of doing it is to solve iteratively. I not asking for anyone to solve this problem for me, just to give me some pointers on how to get started.

Thanks
 
Sorry, the second equation should read

a/k*(1/Ng^2 – 1) = Omega(1/Nv – 1)
 
You have 2 equations with 2 unknowns, so no iteration required.
Assumption:
Na = (ygo * Ng) + (1-ygo)Nv
should be read
Na = (ygo * Ng) + (1-ygo) * Nv

and thus
Nv = (Na - (ygo * Ng)) / (1 - ygo)

you simply report the above value of Nv in the 2nd equation and then you may get the value of Ng

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top