diff options
Diffstat (limited to '863/CH2/EX2.8')
-rw-r--r-- | 863/CH2/EX2.8/Ex2_8.sce | 16 | ||||
-rw-r--r-- | 863/CH2/EX2.8/Ex2_8.txt | 16 | ||||
-rw-r--r-- | 863/CH2/EX2.8/Result2_8.txt | 4 |
3 files changed, 36 insertions, 0 deletions
diff --git a/863/CH2/EX2.8/Ex2_8.sce b/863/CH2/EX2.8/Ex2_8.sce new file mode 100644 index 000000000..04f545276 --- /dev/null +++ b/863/CH2/EX2.8/Ex2_8.sce @@ -0,0 +1,16 @@ +//Caption:Calculate voltage at 14 ms
+//Ex2.8
+clc;
+clear;
+close;
+Eo=0//Voltage at t=0sec(in volt)
+E=20//Peak voltage(in volts)
+r=3.3//Resistance(in kilo ohm)
+c=1//Capacitance(in micro farad)
+t1=4//Time(in ms)
+t2=2//Time(in ms)
+e1=E-((E-Eo)*(2.718)^(-t1/(r*c)))
+e2=Eo-((Eo-e1)*(2.718)^(-t1/(r*c)))
+e3=E-((E-e2)*(2.718)^(-t1/(r*c)))
+e3=Eo-((Eo-e3)*(2.718)^(-t2/(r*c)))
+disp(e3,'Voltage at 14ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.8/Ex2_8.txt b/863/CH2/EX2.8/Ex2_8.txt new file mode 100644 index 000000000..04f545276 --- /dev/null +++ b/863/CH2/EX2.8/Ex2_8.txt @@ -0,0 +1,16 @@ +//Caption:Calculate voltage at 14 ms
+//Ex2.8
+clc;
+clear;
+close;
+Eo=0//Voltage at t=0sec(in volt)
+E=20//Peak voltage(in volts)
+r=3.3//Resistance(in kilo ohm)
+c=1//Capacitance(in micro farad)
+t1=4//Time(in ms)
+t2=2//Time(in ms)
+e1=E-((E-Eo)*(2.718)^(-t1/(r*c)))
+e2=Eo-((Eo-e1)*(2.718)^(-t1/(r*c)))
+e3=E-((E-e2)*(2.718)^(-t1/(r*c)))
+e3=Eo-((Eo-e3)*(2.718)^(-t2/(r*c)))
+disp(e3,'Voltage at 14ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.8/Result2_8.txt b/863/CH2/EX2.8/Result2_8.txt new file mode 100644 index 000000000..3612d0387 --- /dev/null +++ b/863/CH2/EX2.8/Result2_8.txt @@ -0,0 +1,4 @@ + Voltage at 14ms(in volts)=
+
+ 8.3423155
+
\ No newline at end of file |