summaryrefslogtreecommitdiff
path: root/3718/CH1/EX1.3/Ex1_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3718/CH1/EX1.3/Ex1_3.sce')
-rw-r--r--3718/CH1/EX1.3/Ex1_3.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3718/CH1/EX1.3/Ex1_3.sce b/3718/CH1/EX1.3/Ex1_3.sce
new file mode 100644
index 000000000..e63cbd25a
--- /dev/null
+++ b/3718/CH1/EX1.3/Ex1_3.sce
@@ -0,0 +1,18 @@
+//Chapter 1: Structure and Bonding
+//Problem: 3
+clc;
+
+//Declaration of Constant
+c = 3 * 10 ** 8 // Speed of light,in m/sec
+
+//Declaration of Variable
+T = 2.4 * 10 ** -10 // Time period,in sec
+
+// Solution
+f = 1 / T // Frequency,per sec
+lamda = c / f // Wavelength,in m
+v = 1 / lamda // Wavenumber,per meter
+
+mprintf("Frequency: %.2e /sec\n',f)
+mprintf(" Wavelength: %.2e m\n",lamda)
+mprintf(" Wave number: %.2e /m",v)