This is a simple RC DC circuit:

Assume initially t=0, Qc=0.
You can adjust DC voltage sourceV_s, Resistor R and Capacitor C and find out how V_R(t)=I(t)*R and V_C(t)=Q(t)/C changed with time.
Since V_s=V_R+V_C=I*R+Q/C, so I=(V_s-V_c)/R=\frac{V_s-Q/C}{R} this is the only equation used in EJS to create the simulation.
So it is very easy to create simulation with EJS. Enjoy it!

translate strings in simulation to different language format before download
Full screen applet or Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1420.5kB):double click downloaded file to run it. (70 times by 35 users) , Download EJS source View EJS source