diff options
Diffstat (limited to '3718/CH1/EX1.2')
-rw-r--r-- | 3718/CH1/EX1.2/Ex1_2.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3718/CH1/EX1.2/Ex1_2.sce b/3718/CH1/EX1.2/Ex1_2.sce new file mode 100644 index 000000000..09b56551c --- /dev/null +++ b/3718/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,13 @@ +//Chapter 1: Structure and Bonding
+//Problem: 2
+clc;
+
+//Declaration of Constant
+c = 3 * 10 ** 8 // speed of light,in m/sec
+
+//Declaration of Variable
+f = 5 * 10 ** 16 // frequency,in cycles/sec
+
+// Solution
+v = f / c
+mprintf("The wave number is %.2e cycles/m",v)
|