diff options
Diffstat (limited to '863/CH2/EX2.3/Ex2_3.txt')
-rw-r--r-- | 863/CH2/EX2.3/Ex2_3.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/863/CH2/EX2.3/Ex2_3.txt b/863/CH2/EX2.3/Ex2_3.txt new file mode 100644 index 000000000..1ea9072ce --- /dev/null +++ b/863/CH2/EX2.3/Ex2_3.txt @@ -0,0 +1,12 @@ +//Caption:Calculate voltage after 8ms
+//Ex:2.3
+clc;
+clear;
+close;
+c=1//Capacitance of capacitor(in micro farad)
+vs=6//Source voltage(in volts)
+r=10//Resistor(in kilo ohm)
+vi=-3//Initial voltage(in volts)
+t=8//Time (in milli sec)
+e=vs-((vs-vi)*2.718^(-t/(r*c)))
+disp(e,'Voltage after 8ms(in volts)=')
\ No newline at end of file |