WineSnob
Not Bright but TENACIOUS
- Local time
- Today, 07:12
- Joined
- Aug 9, 2010
- Messages
- 211
I have searched and searched and have ALMOST concluded what I need is not possible in VB. I hope I am wrong and someone can help.
Here is what I am trying to do.
Solve for X where all the items in red are parameters. I put this equation in an online algebra solver and I get the correct answer (X=8000). How would I write this in VB? I would like to return X or 8000 to set a control value on the same form where the parameters come from. It is a reverse engineering thing. I have the code to get to 1232132.81 from 8000. It works fine. Now I need to provide 1232132.81 to get 8000.
1232132.81 = (x*(1-(1+(0.0008333))^-48)/(0.0008333))+(((x*60)*(1+0.04)^-4)/60)*(1-(1+0.0008333)^-60)/0.0008333+(((x*84)*(1+0.04)^-9)/84)*(1-(1+0.0008333)^-84)/0.0008333
Here is what I am trying to do.
Solve for X where all the items in red are parameters. I put this equation in an online algebra solver and I get the correct answer (X=8000). How would I write this in VB? I would like to return X or 8000 to set a control value on the same form where the parameters come from. It is a reverse engineering thing. I have the code to get to 1232132.81 from 8000. It works fine. Now I need to provide 1232132.81 to get 8000.
1232132.81 = (x*(1-(1+(0.0008333))^-48)/(0.0008333))+(((x*60)*(1+0.04)^-4)/60)*(1-(1+0.0008333)^-60)/0.0008333+(((x*84)*(1+0.04)^-9)/84)*(1-(1+0.0008333)^-84)/0.0008333