blob: abfd864e82a5e5de8669c58d11123e8376b99be7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//ques-34.15
//Calculating percentage of light absorbed by a solution
clc
C1=30.1; C2=15.05;//concentration (in g/L)
l=1;//thickness (in cm)
ratio=100/50;//=Io/I1
z=log10(ratio)/(C1*l);//= EC/M
//On solving, log10(tran) = EC/M*C2*l
tran=1.4144;
I2=100/tran;
ab=100-I2;
printf("The percentage of light absorbed by the solution is %.1f.",ab);
|