summaryrefslogtreecommitdiff
path: root/635/CH1/EX1.1/Ch01Ex1.sci
blob: 42263bbe7aa0d3b54e098ee84f0139e946c9a38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Scilab Code Ex1.1 Relationship among cyrstal elements: Page-2 (2010)
f = 18;    // Number of faces of the quartz crystal
c = 14;    // Number of angles in the quratz crystal
// The relationship amongst the crystal elements can be 
// expressed by the following formula:
//    f + c = e + 2;
// Solving for e 
e = f + c - 2;
disp (e, "The number of edges of the quartz crystal is : ");

// Result 
// The number of edges of the quartz crystal is : 
//    30