summaryrefslogtreecommitdiff
path: root/3809/CH4/EX4.7/EX4_7.sce
blob: c5d6983e436b7cca8384478d0584be4602a8aad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 4, Example 4.7

clc
//Initialisation
c=10**-5                   //capacitance in farad
v=100                       //voltage


//Calculation
e=(1/2)*c*v**2                 //energy stored



//Results
printf("Energy Stored, C = %d mJ",e*10**3)