VB.Net Mathematical Formula Iteration

  • Thread starter Thread starter samialtas
  • Start date Start date
S

samialtas

Guest
Hey guys. I got a formula (Manning-Strickler Equation) like this:

1.002*A=(1/0.01)*(A)*((A/3.88)^(2/3))*((0.002)^(1/2)) (1st formula)


As you can see the variable A is in the both sides of the equation which means to solve this equation I need a code which works like Microsoft Excel's Goal Seek function.



I tried various mathematical expression evaluators for .NET but all of 'em I tested can only solve regular equations like this:

= 22*4 + 5 ^ 6 (2nd formula)


(To solve the 1st formula, an incremantal value (Say 0.000001) added to a test value (Say 0) for the variable A. After some attempts when both sides of the equation is equal (or nearly equal) then the value of A is found.)

Please help me about this. Thanks.

Continue reading...
 
Back
Top