diff options
Diffstat (limited to '3718/CH1/EX1.1/Ex1_1.sce')
-rw-r--r-- | 3718/CH1/EX1.1/Ex1_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3718/CH1/EX1.1/Ex1_1.sce b/3718/CH1/EX1.1/Ex1_1.sce new file mode 100644 index 000000000..93254b4c6 --- /dev/null +++ b/3718/CH1/EX1.1/Ex1_1.sce @@ -0,0 +1,16 @@ +//Chapter 1: Structure and Bonding
+//Problem: 1
+clc;
+
+//Declaration of Constant
+c = 3 * 10 ** 10 // Velocity of light,in cm/sec
+
+//Declaration of Variable
+w = 3500 * 10 ** -8 // Wavelength of radiation,in cm
+
+// Solution
+mprintf("v = c / w\n") //v is Velocity, c is Speed of light ,w is the wavelength
+
+v = c / w
+
+mprintf(" The frequency of radiation is %.2e Hz",v)
|