blob: 23490abd9508084e61ceeebd52640acd6306ddc8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clear
//
//
//
//Variable declaration
T1=773; //temperature(K)
T2=1273; //temperature(K)
n=1*10^-10; //fraction of vacancy sites
//Calculations
X=(T1*log(n)/T2);
x=exp(X); //fraction of vacancy sites at 1000 C
//Result
printf("\n fraction of vacancy sites at 1000 C is %0.4f *10^-7",x*10^7)
printf("\n answer varies due to rounding off errors")
|