summaryrefslogtreecommitdiff
path: root/2345/CH4/EX4.3/Ex4_3.sce
blob: 217d9fc5111395d2660b4e912d91da9e3a04b2ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Finding heat
//Example 4.3(pg 110)
clc
clear
C=10^-6
V=10000
//here C is capacitance and V voltage
E=1/2*C*V^2
//E is the energy stored in the capacitor
// when the capacitor is discharged all this energy is dissipated as heat in the wire
H=E/4.2
//H is heat produced in calories since 4.2 Joules=1 calorie
printf('Thus the heat produced is %3.4f calories',H)