blob: 0e20dd0281ec08752cd254a3ae33dc9b3b19d537 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Example 4// Ch 3
clc;
clear;
close;
// given data
v = 1.6*10^-19; // avg kinetic energy in j
k = 1.38*10^-23 //boltzmann constant in J/K
T = (2*v)/(3*k);
printf("temperature %e K",T)
|