summaryrefslogtreecommitdiff
path: root/1985/CH3/EX3.2/Chapter3_Example2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1985/CH3/EX3.2/Chapter3_Example2.sce')
-rwxr-xr-x1985/CH3/EX3.2/Chapter3_Example2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1985/CH3/EX3.2/Chapter3_Example2.sce b/1985/CH3/EX3.2/Chapter3_Example2.sce
new file mode 100755
index 000000000..7b96577bc
--- /dev/null
+++ b/1985/CH3/EX3.2/Chapter3_Example2.sce
@@ -0,0 +1,12 @@
+
+clc
+clear
+
+//INPUT DATA
+c=3*10^8;//Speed of light in m/s
+
+//CALCULATIONS
+v=((sqrt(3)*c)/2)/10^8//Speed in m/s
+
+//OUTPUT
+mprintf('The mass of the object is double its mass at rest, when its speed is %3.3f*10^8 m/s',v)