summaryrefslogtreecommitdiff
path: root/1286/CH9/EX9.16/9_16.sce
blob: c194cd0ddab4216221617ace0e276e098da33d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//initialisation
i=3//amp
r=10//ohm
t=27//c
T=273+t//k
//CALCULATIONS
dq1=0
ds1=dq1/T
dq2=i*i*r
ds2=dq2/T
//results
printf(' \n change in entropy of resistor= % 1f j/k',ds1)
printf(' \n change in entropy of universe= % 1f j/k',ds2)