blob: 0acaf70fd289d7b611b1d86dcb69cdf59eb163c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//Initalization of variables
kp=10^(1.45)
//calculations
x=poly(0,"x")
s=(1-x)^2 *(2+x) -kp^2 *x^(3)
vec=roots(s)
X=vec(3)
xper=X*100
//results
printf("Amount of dissociaton = %.1f percent",xper)
printf("\n Of each original mole of CO2, there will be %.3f mole of CO , %.3f mol of Oxygen and %.3f mol of CO2",X,X/2,(1-X))
|