blob: 93254b4c6a6488fafe0ae0f2280d03c80f42e6e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)
|