Skip to content

Instantly share code, notes, and snippets.

@beli-sk
Created May 18, 2015 15:25
Show Gist options
  • Save beli-sk/bd7f2a44c095af018751 to your computer and use it in GitHub Desktop.
Save beli-sk/bd7f2a44c095af018751 to your computer and use it in GitHub Desktop.
Capacitor discharge plotted with gnuplot.
#!/usr/bin/gnuplot
U = 3.3
I = 2.2e-3
R = U/I
C = 10e-6
t = 0.01
set yrange [0:U]
set xrange [0:t]
plot U * exp(-x/(R*C))
pause -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment