「 ̄ 𝐈 if real(𝑡)≤0 & imag(𝑡)=0,
V(𝑡) = { 𝐅 if |RC|=0,
| 𝐅 if |(𝐅-𝐈)𝑒^(-𝑡/(RC))|<√2E-9,
L_ 𝐅-(𝐅-𝐈)𝑒^(-𝑡/(RC)) otherwise
V=voltage at given time
𝐅 = final voltage (i.e. source voltage)
𝐈 = initial voltage
𝑒 = natural logarithm base (~2.718)
𝑡 = given time since V=I (in seconds)
R=resistance (in Ohms)
C=capacitance (in Farads)
Graphed in Desmos with complex values: https://www.desmos.com/calculator/umf1uw97w4