summaryrefslogtreecommitdiff
path: root/3768/CH3/EX3.16/Ex3_16.sce
blob: 6266d70414aa43fa74973610c2c5ee99ba8cfaca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example number 3.16, Page number 52

clc;clear;
close;

//Variable declaration
N=2.303*16.65;
T=298;    //temperature(K)
Kb=8.625*10**-5;
//Calculation
E=2*N*Kb*T;      //energy required(eV)
//Result
printf("energy required is %.2f eV",E)