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