diff options
Diffstat (limited to '2870/CH2/EX2.1/Ex2_1.sce')
-rwxr-xr-x | 2870/CH2/EX2.1/Ex2_1.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2870/CH2/EX2.1/Ex2_1.sce b/2870/CH2/EX2.1/Ex2_1.sce new file mode 100755 index 000000000..cc8cdcf12 --- /dev/null +++ b/2870/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,19 @@ +clc;clear;
+//Example 2.1
+
+//constants used
+Hu=6.73*10^10;//Energy liberated by 1 kg of uranium
+
+//given values
+p=0.75;//assuming the avg density of gasoline in kg/L
+V=5;
+Hv=44000;
+mu=0.1;//mass of uranium used
+
+//calculation
+mgas=p*V;//mass of gasoline required per day
+Egas=mgas*Hv;
+Eu=mu*Hu;
+d=Eu/Egas;
+d=ceil(d);
+disp(d,'the numnber of days the car can run with uranium')
|