summaryrefslogtreecommitdiff
path: root/3411/CH14/EX6.1.u2/Ex6_1_u2.sce
blob: 42c08fa8bdfedff02b804b79c078664a989df079 (plain)
1
2
3
4
5
6
7
8
9
//Example 6_1_u2
clc();
clear;
//To calculate the di-electric constant
eo=8.85*10^-12    //units in F/meter
alphae=36*10^-40     //units in meter^3
n=5*10^28    //units in meter^-3
er=((30*eo)+(2*n*alphae))/((30*eo)-(n*alphae))
printf("The di-electric constant is er=%.2f",er)