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 --- 1529/CH1/EX1.1/1_01.sce | 6 ++++++ 1529/CH1/EX1.2/1_02.sce | 6 ++++++ 1529/CH1/EX1.3/1_03.sce | 7 +++++++ 1529/CH1/EX1.4/1_04.sce | 9 +++++++++ 1529/CH1/EX1.5/1_05.sce | 11 +++++++++++ 1529/CH1/EX1.6/1_06.sce | 11 +++++++++++ 1529/CH1/EX1.7/1_07.sce | 7 +++++++ 1529/CH1/EX1.8/1_08.sce | 9 +++++++++ 8 files changed, 66 insertions(+) create mode 100755 1529/CH1/EX1.1/1_01.sce create mode 100755 1529/CH1/EX1.2/1_02.sce create mode 100755 1529/CH1/EX1.3/1_03.sce create mode 100755 1529/CH1/EX1.4/1_04.sce create mode 100755 1529/CH1/EX1.5/1_05.sce create mode 100755 1529/CH1/EX1.6/1_06.sce create mode 100755 1529/CH1/EX1.7/1_07.sce create mode 100755 1529/CH1/EX1.8/1_08.sce (limited to '1529/CH1') diff --git a/1529/CH1/EX1.1/1_01.sce b/1529/CH1/EX1.1/1_01.sce new file mode 100755 index 000000000..670bf18b4 --- /dev/null +++ b/1529/CH1/EX1.1/1_01.sce @@ -0,0 +1,6 @@ +//Chapter 1, Problem 1 +clc; +I=5; //current +T=2*60; //time taken to flow current +Q=I*T; //calculating quantity of electricity +printf("Quantity of electricity Q = %f C \n\n\n",Q); diff --git a/1529/CH1/EX1.2/1_02.sce b/1529/CH1/EX1.2/1_02.sce new file mode 100755 index 000000000..5c67fda41 --- /dev/null +++ b/1529/CH1/EX1.2/1_02.sce @@ -0,0 +1,6 @@ +//Chapter 1, Problem 2 +clc; +M=5; //mass in kilogram +A=2; //acceleration in m/s2. +F=M*A; //calculating the force needed +printf("Force = %f N \n\n",F); // displaying the result with unit diff --git a/1529/CH1/EX1.3/1_03.sce b/1529/CH1/EX1.3/1_03.sce new file mode 100755 index 000000000..33b68a5d4 --- /dev/null +++ b/1529/CH1/EX1.3/1_03.sce @@ -0,0 +1,7 @@ +//Chapter 1, Problem 3 +clc; +M=0.2; //mass in Kg +g=9.81 // acceleration due to gravity +F=M*g; //calculating the force +//Force acting downwards = weight +printf("Force acting downwards = %f N",F); diff --git a/1529/CH1/EX1.4/1_04.sce b/1529/CH1/EX1.4/1_04.sce new file mode 100755 index 000000000..f9f524011 --- /dev/null +++ b/1529/CH1/EX1.4/1_04.sce @@ -0,0 +1,9 @@ +//Chapter 1, Problem 4 +clc; +F=200; //force in Newton +D=20; //distance in metre +T=25; //time in seconds +W=F*D; //calculating work done in kJ +printf("Work done = %f kJ\n\n\n",W) +P=W/T; //calculating Power in watt +printf("Average power utilized = %f W\n\n\n",P); diff --git a/1529/CH1/EX1.5/1_05.sce b/1529/CH1/EX1.5/1_05.sce new file mode 100755 index 000000000..febeac82e --- /dev/null +++ b/1529/CH1/EX1.5/1_05.sce @@ -0,0 +1,11 @@ +//Chapter 1, Problem 5 +clc; +M=1000; //mass in kg +H=10; //height in metre +T=20; //time in seconds +g=9.81; //acceleration due to gravity +F=M*g; //calculating force from newtons law of motion +W=F*H; //calculating work +printf("(a) Work done = %f kJ\n\n\n",W/1000); +P=W/T; +printf("(b) Power developed = %f kW",P/1000); diff --git a/1529/CH1/EX1.6/1_06.sce b/1529/CH1/EX1.6/1_06.sce new file mode 100755 index 000000000..ec619a66b --- /dev/null +++ b/1529/CH1/EX1.6/1_06.sce @@ -0,0 +1,11 @@ +//Chapter 1, Problem 6 +clc; +R1=10; //Resistance of R1 in ohms +R2=5; //Resistance of R2 in kilohms +R3=100*10^-3; //Resistance of R3 in ohms +G1=1/R1; //calculating conductance +G2=1/R2; +G3=1/R3; +printf("Conductance of a conductor of resistance 10 ohms = %f S \n\n\n",G1); +printf("Conductance of a conductor of resistance 5 k.ohms = %f mS \n\n\n",G2); +printf("Conductance of a conductor of resistance 100 miliohms = %f S \n\n\n",G3); diff --git a/1529/CH1/EX1.7/1_07.sce b/1529/CH1/EX1.7/1_07.sce new file mode 100755 index 000000000..0f78811a9 --- /dev/null +++ b/1529/CH1/EX1.7/1_07.sce @@ -0,0 +1,7 @@ +//Chapter 1, Problem 7 +clc; +V=5; //source emf +I=3; //current in ampere +T=10*60; //time in seconds +E=V*I*T; //calculating energy +printf("Energy provided = %f kJ",E/1000); diff --git a/1529/CH1/EX1.8/1_08.sce b/1529/CH1/EX1.8/1_08.sce new file mode 100755 index 000000000..a853b7c6c --- /dev/null +++ b/1529/CH1/EX1.8/1_08.sce @@ -0,0 +1,9 @@ +//Chapter 1, Problem 8 +clc; +E=1.8*10^6; //energy consumes by electric heater +T=30*60; //time in seconds +V=250; //supply voltage +P=E/T; //calculating power rating of the heater +printf("Power rating of heater = %f kW \n\n\n",P/1000); +I=P/V; //calculating current taken from the supply +printf("Current taken from supply = %f A \n\n\n",I); -- cgit