diff options
Diffstat (limited to '1301')
-rwxr-xr-x | 1301/CH14/EX14.11/ex14_11.sce | 14 | ||||
-rwxr-xr-x | 1301/CH16/EX16.16/ex16_16.sce | 14 | ||||
-rwxr-xr-x | 1301/CH18/EX18.11/ex18_11.sce | 19 | ||||
-rwxr-xr-x | 1301/CH21/EX21.8/ex21_8.sce | 7 | ||||
-rwxr-xr-x | 1301/CH3/EX3.22/ex3_22.sce | 17 | ||||
-rwxr-xr-x | 1301/CH5/EX5.14/ex5_14.sce | 13 | ||||
-rwxr-xr-x | 1301/CH5/EX5.20/ex5_20.sce | 11 |
7 files changed, 51 insertions, 44 deletions
diff --git a/1301/CH14/EX14.11/ex14_11.sce b/1301/CH14/EX14.11/ex14_11.sce index e76f88744..364eac2b8 100755 --- a/1301/CH14/EX14.11/ex14_11.sce +++ b/1301/CH14/EX14.11/ex14_11.sce @@ -1,7 +1,7 @@ -clc;
-K=2*10^-7; //constant in N/A square
-N=100; //number of turns
-I=4; //current in Ampere
-r=5*10^-2; //radius in m
-B=(%pi*K*I*N)/s; //calculating magnitude of field
-disp(B,"Magnitude of field in Tesla = "); //displaying result
+clc; +K=2*10^-7; //constant in N/A square +N=100; //number of turns +I=4; //current in Ampere +r=5*10^-2; //radius in m +B=(%pi*K*I*N)/r; //calculating magnitude of field +disp(B,"Magnitude of field in Tesla = "); //displaying result
\ No newline at end of file diff --git a/1301/CH16/EX16.16/ex16_16.sce b/1301/CH16/EX16.16/ex16_16.sce index 086441797..39265ac8b 100755 --- a/1301/CH16/EX16.16/ex16_16.sce +++ b/1301/CH16/EX16.16/ex16_16.sce @@ -1,6 +1,8 @@ -clc;
-v1=-20; //velocity in m/sec
-vs=0; //velocity in m/sec
-fs=500; //original frquency
-f1=(fs*(v+v1))/(v-vs); //doppler effect
-disp(f1,"Percieved frequency in Hz = "); //diplaying result
\ No newline at end of file +clc; +v1=-20; //velocity in m/sec +v= 343; +vs=0; //velocity in m/sec +fs=500; //original frquency +f1=(fs*(v+v1))/(v-vs); //doppler effect +disp(f1,"Percieved frequency in Hz = "); //diplaying result +//470.845
\ No newline at end of file diff --git a/1301/CH18/EX18.11/ex18_11.sce b/1301/CH18/EX18.11/ex18_11.sce index 8c5d9fbe6..5ae1a9a54 100755 --- a/1301/CH18/EX18.11/ex18_11.sce +++ b/1301/CH18/EX18.11/ex18_11.sce @@ -1,10 +1,11 @@ -clc;
-e=1.6*10^-19; //charge
-ke=1.5*10^4; //kinetic energy in eV
-KE=ke*e; //calculating kinetic energy
-m=9.1*10^-31; //mass in kg
-disp(KE,"Kinetic Energy in Joule = "); //displaying result
-v=sqrt((2*KE)/m); //calculating velocity
-disp(v,"Velocity in m/sec = "); //displaying result
-l=h/(m*v); //calculating wavelength
+clc; +e=1.6*10^-19; //charge +h= 6.626 * 10^-34; +ke=1.5*10^4; //kinetic energy in eV +KE=ke*e; //calculating kinetic energy +m=9.1*10^-31; //mass in kg +disp(KE,"Kinetic Energy in Joule = "); //displaying result +v=sqrt((2*KE)/m); //calculating velocity +disp(v,"Velocity in m/sec = "); //displaying result +l=h/(m*v); //calculating wavelength disp(l,"Wavelength in metre = "); h=6.63*10^-34; //planck's constant in J.sec
\ No newline at end of file diff --git a/1301/CH21/EX21.8/ex21_8.sce b/1301/CH21/EX21.8/ex21_8.sce index 1349fef17..8ff3f524c 100755 --- a/1301/CH21/EX21.8/ex21_8.sce +++ b/1301/CH21/EX21.8/ex21_8.sce @@ -1,4 +1,5 @@ -clc;
-E=2.18*10^-18; //energy in Joule
-k=1.38*10^-23; //constant in J/K
+clc; +E=2.18*10^-18; //energy in Joule +h= 6.626 * 10^-34; +k=1.38*10^-23; //constant in J/K disp(E/h,"Frequency in Hz = "); //displaying result
\ No newline at end of file diff --git a/1301/CH3/EX3.22/ex3_22.sce b/1301/CH3/EX3.22/ex3_22.sce index cd4cc0d1b..51b4206dc 100755 --- a/1301/CH3/EX3.22/ex3_22.sce +++ b/1301/CH3/EX3.22/ex3_22.sce @@ -1,8 +1,9 @@ -clc;
-F=50-30; //force in lb
-w1=50; //weight in lb
-w2=30; //weight in lb
-m=(w1+w2)/g; //calculating mass
-disp(m,"Mass in slugs = "); //displaying result
-a=F/m; //Newton's Law
-disp(a,"Accelaration in ft/sec square = "); //displaying result
+clc; +F=50-30; //force in lb +g = 9.81; +w1=50; //weight in lb +w2=30; //weight in lb +m=(w1+w2)/g; //calculating mass +disp(m,"Mass in slugs = "); //displaying result +a=F/m; //Newton's Law +disp(a,"Accelaration in ft/sec square = "); //displaying result
\ No newline at end of file diff --git a/1301/CH5/EX5.14/ex5_14.sce b/1301/CH5/EX5.14/ex5_14.sce index f2e562041..05d5926b0 100755 --- a/1301/CH5/EX5.14/ex5_14.sce +++ b/1301/CH5/EX5.14/ex5_14.sce @@ -1,7 +1,8 @@ -clc;
-w=2500; //weight in lb
-v=40; //velocity in mi/hr
-m=w/g; //calculating mass in slugs
-v=40*1.47; //converting velocity in ft/sec
-KE=(1/2)*(m*v*v); //calculating Kinetic energy in ft.lb
+clc; +w=2500; //weight in lb +v=40; //velocity in mi/hr +g = 32.2; +m=w/g; //calculating mass in slugs +v=40*1.47; //converting velocity in ft/sec +KE=(1/2)*(m*v*v); //calculating Kinetic energy in ft.lb disp(KE,"Kinetic Energy in ft.lb = "); //displaying result
\ No newline at end of file diff --git a/1301/CH5/EX5.20/ex5_20.sce b/1301/CH5/EX5.20/ex5_20.sce index 691351143..844030a49 100755 --- a/1301/CH5/EX5.20/ex5_20.sce +++ b/1301/CH5/EX5.20/ex5_20.sce @@ -1,6 +1,7 @@ -clc;
-P=10^8; //power in Watt
-t=60*60*24; //t in seconds for 1 day
-E=P*t; //calculating energy in Joule using E=P*t
-m=E/(c*c); //calculating m in kg using Einstein's equation:E=m*c*c
+clc; +P=10^8; //power in Watt +c = 3*10^8; +t=60*60*24; //t in seconds for 1 day +E=P*t; //calculating energy in Joule using E=P*t +m=E/(c*c); //calculating m in kg using Einstein's equation:E=m*c*c disp(m,"Mass in kg = "); //displaying result
\ No newline at end of file |