summaryrefslogtreecommitdiff
path: root/1991/CH8/EX8.12/12.sce
blob: 0c999eff1fe7cef60907b9851c6fc9d9406feb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
//input
v=250 //dc voltage
s=0.22 //length
d=4*10^-3 //diameter
//calculation
q=8.9*10^-12*1*0.22*0.22*250/(4*10^-3)//for air
q1=8.9*10^-12*6.8*0.22*0.22*250/(4*10^-3)//for material
//output
printf("the permittivity  for air is %3.3e C",q)
printf("\n the relative permittivity for material is %3.3e C",q1)