summaryrefslogtreecommitdiff
path: root/1247/CH3/EX3.8/example3_8.sce
blob: adde01e0d48eb4fe85f8832600582ea905a42489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;

// Stoichiometry
// Chapter 3
// Material Balances Without Chemical Reaction


// Example 3.8
// Page 64
printf("Example 3.8, Page 64 \n \n");

// solution

m = 1000 //[kg] mixed acid (basis)
// doing overall mass balance, H2SO4 balance and HNO3 balance
A = [1 1 1;.444 0 .98;.113 .9 0]
d = [1000;600;320]
x = A\d
printf("quantities of acids required are :\n  Spent = "+string(x(1,1))+"kg \n  HNO3 = "+string(x(2,1))+" kg\n  H2SO4 = "+string(x(3,1))+" kg.")