Hi there,
I have three columns Time (t) Charge (Q) and Current (I).
The Time column contains second values 1,2,3 etc.
Q is defined as I * t.
I is defined as Q * 2.
So for first time step I is given a value so Q can can be calculated. Then from Q, I can be calculated. Now for the next time step I want the new value for I to be used to calculate Q and then I again and so on
Would anyone know how to code this?
Thanks in advance
John
I have three columns Time (t) Charge (Q) and Current (I).
The Time column contains second values 1,2,3 etc.
Q is defined as I * t.
I is defined as Q * 2.
So for first time step I is given a value so Q can can be calculated. Then from Q, I can be calculated. Now for the next time step I want the new value for I to be used to calculate Q and then I again and so on
Code:
t Q I
1 1* 0.01(starting value for I) 0.01*2
2 This should be 0.02 *2 This should be 0.04*2
3 ..... ......
4 ..... ......
Would anyone know how to code this?
Thanks in advance
John