summaryrefslogtreecommitdiff
path: root/3850/CH30/EX30.1/Ex30_1.sce
blob: 2fb7a05cbdea3eece82d26bcea36ce6bd0797732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

//To Find the Flux of Electric Field through the surface bounded by the frame

//Example 30.1

clear;

clc;

delS=0.01;//Length of Edge of the Square frame in metres

E=20;//Electric Field in V/m

Theta=%pi/3;//Angle between Normal and Electric Field

Flux=E*delS*cos(Theta);//Electric Flux through the Surface

printf("Net flux of Electric Field=%f V/m",Flux);