|
Help with Programming/Maths!
Ok... here's an iterative formula which works in my program
Code:
for i = 0 to t
B=B+xy(a^i)
next
basically I am trying to work out B.
I KNOW x, y and a... they're constants. It's fairly simple when you replace them with numbers.
It's the same as saying
Code:
B = xy(a^0) + xy(a^1) + xy(a^2)... and so on
What i need to do is write a similar loop or function or whatever which allows me to calculate x, assuming i know B.
It might be something like
Do you see what I mean? I can't figure it out! this is for that bankroll calculator, by the way!
I am 27. I last did this shit when i was 21. That is a long time
If anyone knows what a for..next loop is and can do algebra/math but doesnt understand the question then please post because i might be able to explain it better
|