From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1739/CH1/EX1.1/Exa1_1.sce | 15 +++++++++++++++ 1739/CH1/EX1.2/Exa1_2.sce | 12 ++++++++++++ 1739/CH1/EX1.3/Exa1_3.sce | 11 +++++++++++ 1739/CH1/EX1.4/Exa1_4.sce | 11 +++++++++++ 1739/CH1/EX1.5/Exa1_5.sce | 11 +++++++++++ 5 files changed, 60 insertions(+) create mode 100755 1739/CH1/EX1.1/Exa1_1.sce create mode 100755 1739/CH1/EX1.2/Exa1_2.sce create mode 100755 1739/CH1/EX1.3/Exa1_3.sce create mode 100755 1739/CH1/EX1.4/Exa1_4.sce create mode 100755 1739/CH1/EX1.5/Exa1_5.sce (limited to '1739/CH1') diff --git a/1739/CH1/EX1.1/Exa1_1.sce b/1739/CH1/EX1.1/Exa1_1.sce new file mode 100755 index 000000000..c3a86ca3a --- /dev/null +++ b/1739/CH1/EX1.1/Exa1_1.sce @@ -0,0 +1,15 @@ +//Exa 1.1 +clc; +clear; +close; +//Given data : +//epsilon=2*epsilon_o; +//mu=2*mu_o; +disp("v=1/sqrt(mu*epsilon)"); +disp("Putting value of mu and epsilon"); +disp("v=1/sqrt(2*mu_o*2*epsilon_o)"); +disp("v=1/(2*sqrt(mu_o*epsilon_o))"); +disp("v=c/2"); +c=3*10^8;//speed of light in m/s +v=c/2;//in m/s +disp(v,"Velocity of light in medium in m/s : "); \ No newline at end of file diff --git a/1739/CH1/EX1.2/Exa1_2.sce b/1739/CH1/EX1.2/Exa1_2.sce new file mode 100755 index 000000000..1fd2cffdb --- /dev/null +++ b/1739/CH1/EX1.2/Exa1_2.sce @@ -0,0 +1,12 @@ +//Exa 1.2 +clc; +clear; +close; +//Given data : +format('v',5); +n1=1.5;//refractive index +n2=1.47;//refractive index +//Formula : sin(theta_c)=n2/n1; +theta_c=asind(n2/n1);//in Degree +disp(theta_c,"Critical Angle in Degree : "); +//Note : Answer in the book is wrong. \ No newline at end of file diff --git a/1739/CH1/EX1.3/Exa1_3.sce b/1739/CH1/EX1.3/Exa1_3.sce new file mode 100755 index 000000000..f87b96749 --- /dev/null +++ b/1739/CH1/EX1.3/Exa1_3.sce @@ -0,0 +1,11 @@ +//Exa 1.3 +clc; +clear; +close; +//Given data : +format('v',5); +n1=1.52;//refractive index +//Formula : sin(theta_c)=n2/n1; +theta_c=73.2;//in Degree +n2=n1*sind(theta_c); +disp(n2,"Refractive Index of another medium : "); \ No newline at end of file diff --git a/1739/CH1/EX1.4/Exa1_4.sce b/1739/CH1/EX1.4/Exa1_4.sce new file mode 100755 index 000000000..140ccca1c --- /dev/null +++ b/1739/CH1/EX1.4/Exa1_4.sce @@ -0,0 +1,11 @@ +//Exa 1.4 +clc; +clear; +close; +//Given data : +format('v',9); +n=1.33;//refractive index +//Formula : velocity_of_light_in_medium=velocity_of_light_in_free_space/Refractive_Index; +c=3*10^8;//in m/s +v=c/n;//in m/s +disp(v,"velocity of light in medium in m/s : "); \ No newline at end of file diff --git a/1739/CH1/EX1.5/Exa1_5.sce b/1739/CH1/EX1.5/Exa1_5.sce new file mode 100755 index 000000000..5728b5541 --- /dev/null +++ b/1739/CH1/EX1.5/Exa1_5.sce @@ -0,0 +1,11 @@ +//Exa 1.5 +clc; +clear; +close; +//Given data : +format('v',5); +c=3*10^8;//in m/s +v=1.1*10^8;//in m/s +//Formula : velocity_of_light_in_medium=velocity_of_light_in_free_space/Refractive_Index; +n=c/v;//in m/s +disp(n,"Refractive Index of medium : "); \ No newline at end of file -- cgit