summaryrefslogtreecommitdiff
path: root/3768/CH7/EX7.9/Ex7_9.sce
blob: 236180aad59fcacc141971e597555df20ab7c077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//Example number 7.9, Page number 149

clc;clear;
close;

//Variable declaration
C=4*10**-6;    //capacitance(F)
epsilonr=200;       //relative dielectric constant
V=2000;       //voltage(V)
//Calculation
C0=C/epsilonr;    //energy in condenser(F)
E=C0*V/2;      //energy in dielectric(J)
//Result
printf("energy in condenser is %.e F",C0)
printf("\n energy in dielectric is %.1e J",E)
//answer in the book is wrong