summaryrefslogtreecommitdiff
path: root/3718/CH1/EX1.2/Ex1_2.sce
blob: 09b56551cbaa0fad063fe4dc5abaabd5b9cf1c0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)