summaryrefslogtreecommitdiff
path: root/1247/CH2/EX2.5/example2_5.sce
blob: 32265070de8714c3e1fa6fa2e546670112d5db0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
clear;
clc;

// Stoichiometry
// Chapter 2
// Basic Chemical Calculations


// Example 2.5
// Page 19
printf("Example 2.5, Page 19 \n \n");

// solution

printf("(a) \n \n")
//PO4 radical
M = 31+4*16 //[g] 
V = 3 // (valence of PO4)
eqm = M/V 
printf("eq. mass of PO4 is "+string(eqm)+" [g] \n \n \n")
printf("(b) \n \n")
//Na3PO4
M = 3*23+95 //[g]
V = 3
eqm = M/V
printf("eq. mass of Na3PO4 is "+string(eqm)+" [g] \n \n")