summaryrefslogtreecommitdiff
path: root/1826/CH18/EX18.18/ex18_18.sce
blob: cb927b0b46de48ea6cccff49fadb649cea3c976e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Example 18.18, page no-471
clear
clc
A=1000*10^-6 //m^2
d=5*10^-3
epsr=4
Q=3*10^-10
eps=8.854*10^-12
c=(eps*epsr*A)/d
v=Q/c
E=v/d
printf("The voltage across capacitor is %.2f V\nThe electric field strength is %.2f V/m",v,E)