ok, here is my basic code
Dim x As Decimal = 0
Dim y As Decimal = 0.016
Do Until y <= 0.00016
y = y * 0.869
x = x + 1
Loop
MessageBox.Show(x)
+
How in the world would I make this into a single line math equation.
Basically this is for a chemical extraction where each time an extraction occurs there is 86.9% less of the chemical. How many extractions would be required to reduce the chemical to 1% of it's original value (which is .016, so once the extraction reaches .00016 then we are done) Now If I throw this into code as I did above it's easy to find out that it would need 33 extractions. BUT!!! I want to create an equation that will show this by plugging in someplace the 1% How would I do this. If anyone gives me an acceptable equation (One that I think would be presentable, I will paypal them 15 dollars)
Remeber I know the answer and I can do this in code. But what I am looking for is a mathmatical equation that I can present to a meeting.
Thanks
Dim x As Decimal = 0
Dim y As Decimal = 0.016
Do Until y <= 0.00016
y = y * 0.869
x = x + 1
Loop
MessageBox.Show(x)
+
How in the world would I make this into a single line math equation.
Basically this is for a chemical extraction where each time an extraction occurs there is 86.9% less of the chemical. How many extractions would be required to reduce the chemical to 1% of it's original value (which is .016, so once the extraction reaches .00016 then we are done) Now If I throw this into code as I did above it's easy to find out that it would need 33 extractions. BUT!!! I want to create an equation that will show this by plugging in someplace the 1% How would I do this. If anyone gives me an acceptable equation (One that I think would be presentable, I will paypal them 15 dollars)
Remeber I know the answer and I can do this in code. But what I am looking for is a mathmatical equation that I can present to a meeting.
Thanks