summaryrefslogtreecommitdiff
path: root/3845/CH16/EX16.2/Ex16_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH16/EX16.2/Ex16_2.sce')
-rw-r--r--3845/CH16/EX16.2/Ex16_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3845/CH16/EX16.2/Ex16_2.sce b/3845/CH16/EX16.2/Ex16_2.sce
new file mode 100644
index 000000000..c0e65dff7
--- /dev/null
+++ b/3845/CH16/EX16.2/Ex16_2.sce
@@ -0,0 +1,11 @@
+//Example 16.2
+k=50;//Force constant of spring (N/m)
+x=0.150;//Spring deformation (m)
+PE_el=1/2*k*x^2;//Elastic potential energy (J)
+printf('a.Energy stored in the spring = %0.3f J',PE_el)
+KE_f=PE_el;//Kinetic energy (J)
+m=2*10^-3;//Mass of projectile (kg)
+v=sqrt(2*KE_f/m);//Speed of projectile (J/kg)^(1/2) or (m/s)
+printf('\nb.Speed of the projectile = %0.1f m/s',v)
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest