diff options
Diffstat (limited to '3845/CH1')
-rw-r--r-- | 3845/CH1/EX1.1/Ex1_1.sce | 9 | ||||
-rw-r--r-- | 3845/CH1/EX1.2/Ex1_2.sce | 7 | ||||
-rw-r--r-- | 3845/CH1/EX1.3/Ex1_3.sce | 8 | ||||
-rw-r--r-- | 3845/CH1/EX1.4/Ex1_4.sce | 12 |
4 files changed, 36 insertions, 0 deletions
diff --git a/3845/CH1/EX1.1/Ex1_1.sce b/3845/CH1/EX1.1/Ex1_1.sce new file mode 100644 index 000000000..5189817dc --- /dev/null +++ b/3845/CH1/EX1.1/Ex1_1.sce @@ -0,0 +1,9 @@ +//Example 1.1
+distance=10;//Distance (km)
+time=20;//Time (min)
+avg_speed_a=distance/time*60;//Average Speed (km/h)
+printf('a. Average speed = %0.1f km/h',avg_speed_a)
+avg_speed_b=avg_speed_a*1000/3600;//Average Speed (m/s)
+printf('\nb. Average speed = %0.2f m/s',avg_speed_b)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest
diff --git a/3845/CH1/EX1.2/Ex1_2.sce b/3845/CH1/EX1.2/Ex1_2.sce new file mode 100644 index 000000000..f3bbaffe3 --- /dev/null +++ b/3845/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,7 @@ +//Example 1.2
+A=5;//Expected value of bag's weight (lb)
+delta_A=0.4;//Uncertainty in A (lb)
+percent_unc=delta_A/A*100;//Percent uncertainty of the weight
+printf('Percent uncertainty of the weight = %0.1f%%',percent_unc)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest
diff --git a/3845/CH1/EX1.3/Ex1_3.sce b/3845/CH1/EX1.3/Ex1_3.sce new file mode 100644 index 000000000..e547445b9 --- /dev/null +++ b/3845/CH1/EX1.3/Ex1_3.sce @@ -0,0 +1,8 @@ +//Example 1.3
+stories=39;//Number of stories in the building
+height_man=2;//Approximate height of an adult man (m)
+height_storey=2*height_man;//Approximate height of a single storey (m)
+height_building=2*height_man*stories;//Approximate height of building assuming height of 1 storey=2*height_man (m)
+printf('Approximate height of building = %0.1f m',height_building)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest
diff --git a/3845/CH1/EX1.4/Ex1_4.sce b/3845/CH1/EX1.4/Ex1_4.sce new file mode 100644 index 000000000..80061116d --- /dev/null +++ b/3845/CH1/EX1.4/Ex1_4.sce @@ -0,0 +1,12 @@ +//Example 1.4
+vol_stack=6*3*0.5;//Volume of a stack of 100 bills(in^3)=length(in)*width(in)*height(in)
+n_stacks=(1*10^12)/(1*10^4);//Number of stacks=(1 trillion $)/(dollars in a stack of 100$ bills)
+area=100*50*(3/1)*(3/1)*(12/1)*(12/1);//Area of football field (in^2)=length(yards)*width(yards)*conversion sq.yards to sq.in
+tot_vol=vol_stack*n_stacks;//Total volume of bills (in^3)
+height=tot_vol/area;//Height of bills (in)
+printf('Height of money = %0.2f in',height)
+printf('\nHeight of money = %0.2f ft',height/12)
+//Answers vary greatly because of the large approximations made in the textbook
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest
+
|