blob: aedbd0795da4204061f94959940f52bdf33332bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Example number 6.4, Page number 117
clc;clear;
close;
//Variable declaration
PE=1/100; //probability
E_EF=0.5; //energy difference
//Calculation
x=log((1/PE)-1);
T=E_EF/x; //temperature(K)
//Result
printf("temperature is %.4f K",T)
//answer given in the book is wrong
|