Hello folks, really struggling to get a script for the energy in a capacitor.
Using the formulae:
v(t) = int(i(t) / C) dt
The script need to be able to accept arrays ie
t = 0,1,2,3,4
i = 2,3,5,5,8
for example, im sure this is very easy for someone experienced to code. But personally I'm having a nightmare with it!
Any help is greatly appreciated!!
Many Thanks
Lee
Using the formulae:
v(t) = int(i(t) / C) dt
The script need to be able to accept arrays ie
t = 0,1,2,3,4
i = 2,3,5,5,8
for example, im sure this is very easy for someone experienced to code. But personally I'm having a nightmare with it!
Any help is greatly appreciated!!
Many Thanks
Lee