summaryrefslogtreecommitdiff
path: root/995/CH3
diff options
context:
space:
mode:
Diffstat (limited to '995/CH3')
-rwxr-xr-x995/CH3/EX3.1/Ex3_1.sce11
-rwxr-xr-x995/CH3/EX3.10/Ex3_10.sce13
-rwxr-xr-x995/CH3/EX3.11/Ex3_11.sce10
-rwxr-xr-x995/CH3/EX3.12/Ex3_12.sce9
-rwxr-xr-x995/CH3/EX3.13/Ex3_13.sce8
-rwxr-xr-x995/CH3/EX3.14/Ex3_14.sce8
-rwxr-xr-x995/CH3/EX3.15/Ex3_15.sce10
-rwxr-xr-x995/CH3/EX3.16/Ex3_16.sce7
-rwxr-xr-x995/CH3/EX3.2/Ex3_2.sce11
-rwxr-xr-x995/CH3/EX3.3/Ex3_3.sce16
-rwxr-xr-x995/CH3/EX3.4/Ex3_4.sce12
-rwxr-xr-x995/CH3/EX3.5/Ex3_5.sce9
-rwxr-xr-x995/CH3/EX3.6/Ex3_6.sce9
-rwxr-xr-x995/CH3/EX3.7/Ex3_7.sce15
-rwxr-xr-x995/CH3/EX3.8/Ex3_8.sce9
-rwxr-xr-x995/CH3/EX3.9/Ex3_9.sce10
16 files changed, 167 insertions, 0 deletions
diff --git a/995/CH3/EX3.1/Ex3_1.sce b/995/CH3/EX3.1/Ex3_1.sce
new file mode 100755
index 000000000..977b21d06
--- /dev/null
+++ b/995/CH3/EX3.1/Ex3_1.sce
@@ -0,0 +1,11 @@
+//Ex:3.1
+clc;
+clear;
+close;
+i1=1.5;
+i2=2.7;//in amp.s
+i5=i1+i2;
+i4=3.3;
+i3=i4+i5;
+printf("Current b/w A & B = %f A",i5);
+printf("\n Current I3 = %f A",i3); \ No newline at end of file
diff --git a/995/CH3/EX3.10/Ex3_10.sce b/995/CH3/EX3.10/Ex3_10.sce
new file mode 100755
index 000000000..e2787fe1a
--- /dev/null
+++ b/995/CH3/EX3.10/Ex3_10.sce
@@ -0,0 +1,13 @@
+//Ex:3.10
+clc;
+clear;
+close;
+c=100*10^-6;//in farads
+r=1*10^3;//in ohms
+t1=50*10^-3;//in sec.
+t2=100*10^-3;//in sec.
+V_s=350;//in volts
+i1=(V_s/1000)*(%e^(-t1/(r*c)));
+i2=(V_s/1000)*(%e^(-t2/(r*c)));
+printf("Charging current after %f sec = %f A",t1,i1);
+printf("\n Charging current after %f sec = %f A",t2,i2); \ No newline at end of file
diff --git a/995/CH3/EX3.11/Ex3_11.sce b/995/CH3/EX3.11/Ex3_11.sce
new file mode 100755
index 000000000..58d172226
--- /dev/null
+++ b/995/CH3/EX3.11/Ex3_11.sce
@@ -0,0 +1,10 @@
+//Ex:3.11
+clc;
+clear;
+close;
+c=10*10^-6;//in farads
+r=47*10^3;//in ohms
+V_s=20;//in volts
+V_c=10;
+t=-c*r*log(V_c/V_s);
+printf("time taken = %f sec.",t); \ No newline at end of file
diff --git a/995/CH3/EX3.12/Ex3_12.sce b/995/CH3/EX3.12/Ex3_12.sce
new file mode 100755
index 000000000..ac0a6df11
--- /dev/null
+++ b/995/CH3/EX3.12/Ex3_12.sce
@@ -0,0 +1,9 @@
+//Ex:3.12
+clc;
+clear;
+close;
+c=150*10^-6;//in farads
+r=2*10^6;//in ohms
+V_s=150;//in volts
+V_c=0.8187*V_s;
+printf("Capacitor voltage = %f V",V_c); \ No newline at end of file
diff --git a/995/CH3/EX3.13/Ex3_13.sce b/995/CH3/EX3.13/Ex3_13.sce
new file mode 100755
index 000000000..475977dc9
--- /dev/null
+++ b/995/CH3/EX3.13/Ex3_13.sce
@@ -0,0 +1,8 @@
+//Ex:3.13
+clc;
+clear;
+close;
+r=10*10^3;//in ohms
+t=1*10^-3;
+c=(0.1*t/r)*10^9;
+printf("Capacitor = %d nF",c); \ No newline at end of file
diff --git a/995/CH3/EX3.14/Ex3_14.sce b/995/CH3/EX3.14/Ex3_14.sce
new file mode 100755
index 000000000..271a8912b
--- /dev/null
+++ b/995/CH3/EX3.14/Ex3_14.sce
@@ -0,0 +1,8 @@
+//Ex:3.14
+clc;
+clear;
+close;
+r=10*10^3;//in ohms
+t=1*10^-3;
+c=(10*t/r)*10^6;
+printf("Capacitor = %d uF",c); \ No newline at end of file
diff --git a/995/CH3/EX3.15/Ex3_15.sce b/995/CH3/EX3.15/Ex3_15.sce
new file mode 100755
index 000000000..1712d183b
--- /dev/null
+++ b/995/CH3/EX3.15/Ex3_15.sce
@@ -0,0 +1,10 @@
+//Ex:3.15
+clc;
+clear;
+close;
+L=6;//in henry
+r=24;//in ohms
+t=0.1;//in sec.
+V_s=12;//in volts
+i=(V_s/r)*(1-%e^(-t*r/L));
+printf("current = %f A",i); \ No newline at end of file
diff --git a/995/CH3/EX3.16/Ex3_16.sce b/995/CH3/EX3.16/Ex3_16.sce
new file mode 100755
index 000000000..1f1001f61
--- /dev/null
+++ b/995/CH3/EX3.16/Ex3_16.sce
@@ -0,0 +1,7 @@
+//Ex:3.16
+clc;
+clear;
+close;
+V_s=5;//in volts
+V_c=0.8647*V_s;
+printf("Inductor voltage = %f V",V_c); \ No newline at end of file
diff --git a/995/CH3/EX3.2/Ex3_2.sce b/995/CH3/EX3.2/Ex3_2.sce
new file mode 100755
index 000000000..f1a27f356
--- /dev/null
+++ b/995/CH3/EX3.2/Ex3_2.sce
@@ -0,0 +1,11 @@
+//Ex:3.2
+clc;
+clear;
+close;
+E1=6;
+E2=3;
+V2=E1-E2;
+V1=4.5;
+E3=V1-E2;
+printf("Value of V2 = %f A",V2);
+printf("\n Value of E3 = %f A",E3); \ No newline at end of file
diff --git a/995/CH3/EX3.3/Ex3_3.sce b/995/CH3/EX3.3/Ex3_3.sce
new file mode 100755
index 000000000..1564c0507
--- /dev/null
+++ b/995/CH3/EX3.3/Ex3_3.sce
@@ -0,0 +1,16 @@
+//Ex:3.3
+clc;
+clear;
+close;
+V1=7.5;//in volts
+V2=4.5;
+V3=4.5;
+r1=110;//in ohms
+r2=33;
+r3=22;
+i1=V1/r1;
+i2=V2/r2;
+i3=V3/r3;
+printf("Current I1 = %f A",i1);
+printf("\n Current I2 = %f A",i2);
+printf("\n Current I3 = %f A",i3); \ No newline at end of file
diff --git a/995/CH3/EX3.4/Ex3_4.sce b/995/CH3/EX3.4/Ex3_4.sce
new file mode 100755
index 000000000..f46fbb552
--- /dev/null
+++ b/995/CH3/EX3.4/Ex3_4.sce
@@ -0,0 +1,12 @@
+//Ex:3.4
+clc;
+clear;
+close;
+V_in=5;//in volts
+r1=4000;
+r2=1000;
+r_p=r1*r2/(r1+r2);
+V_out=V_in*(r2/(r1+r2));
+V_out_p=V_in*(r_p/(r_p+r2));
+printf("output voltage at no load = %f A",V_out);
+printf("\n output voltage when loaded by 10kohms = %f A",V_out_p); \ No newline at end of file
diff --git a/995/CH3/EX3.5/Ex3_5.sce b/995/CH3/EX3.5/Ex3_5.sce
new file mode 100755
index 000000000..a99cb2fc6
--- /dev/null
+++ b/995/CH3/EX3.5/Ex3_5.sce
@@ -0,0 +1,9 @@
+//Ex:3.5
+clc;
+clear;
+close;
+I_in=5;//in mA
+R_m=100;
+I_m=1;
+R_s=R_m*I_m/(I_in-1);
+printf("Value of parallel shunt resistor = %d A",R_s); \ No newline at end of file
diff --git a/995/CH3/EX3.6/Ex3_6.sce b/995/CH3/EX3.6/Ex3_6.sce
new file mode 100755
index 000000000..6546e941b
--- /dev/null
+++ b/995/CH3/EX3.6/Ex3_6.sce
@@ -0,0 +1,9 @@
+//Ex:3.6
+clc;
+clear;
+close;
+r1=100;
+r2=1000;
+R_x_1=(r2/r1)*10000;
+R_x_2=(r1/r2)*10;
+printf("Range extends from %d ohms to %d ohms",R_x_2,R_x_1); \ No newline at end of file
diff --git a/995/CH3/EX3.7/Ex3_7.sce b/995/CH3/EX3.7/Ex3_7.sce
new file mode 100755
index 000000000..79f1941fe
--- /dev/null
+++ b/995/CH3/EX3.7/Ex3_7.sce
@@ -0,0 +1,15 @@
+//Ex:3.7
+clc;
+clear;
+close;
+E=10;
+r1=500;
+r2=600;
+r3=500;
+r4=400;
+V_a=E*(r2/(r1+r2));
+V_b=E*(r4/(r3+r4));
+V_oc=V_a-V_b;
+r=((r1*r2)/(r1+r2))+((r3*r4)/(r3+r4));
+i=(V_oc/(r+100))*1000;
+printf("Current flow in 100 ohm resistor = %f mA",i ); \ No newline at end of file
diff --git a/995/CH3/EX3.8/Ex3_8.sce b/995/CH3/EX3.8/Ex3_8.sce
new file mode 100755
index 000000000..ddfb7d64d
--- /dev/null
+++ b/995/CH3/EX3.8/Ex3_8.sce
@@ -0,0 +1,9 @@
+//Ex:3.8
+clc;
+clear;
+close;
+I_sc=19;//in uA
+R=1000;
+R_m=968;
+V_out=I_sc*(R*R_m/(R+R_m));
+printf("Voltage produced = %d uV",V_out); \ No newline at end of file
diff --git a/995/CH3/EX3.9/Ex3_9.sce b/995/CH3/EX3.9/Ex3_9.sce
new file mode 100755
index 000000000..72c5724e0
--- /dev/null
+++ b/995/CH3/EX3.9/Ex3_9.sce
@@ -0,0 +1,10 @@
+//Ex:3.9
+clc;
+clear;
+close;
+c=1*10^-6;//in farads
+r=3.3*10^6;//in ohms
+t=1;//in sec.
+V_s=9;//in volts
+V_c=V_s*(1-%e^(-t/(r*c)));
+printf("Voltage produced = %f V",V_c); \ No newline at end of file