blob: 7cd76e706469ba5d14193dab416c6aa53d7d0239 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc//
//
//
//Variable declaration
mew=9.4*10^-24;
H=2; //magnetic field(weber/m^2)
k=1.38*10^-23; //boltzmann constant
//Calculation
T=2*mew*H/(log(2)*k); //temperature(K)
//Result
printf("\n temperature is %0.1f K",T)
|