summaryrefslogtreecommitdiff
path: root/2975/CH30/EX30.1w/Ex30_1w.sce
blob: 3d908f737e31e8c866961bc9b2bb4633693dbd4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//developed in windows 8 operating system 64bit
//platform Scilab 5.4.1
//example 30_1w

clc;clear;
//Given Data

elec_field=100;         //Magnitude of Electric field (Unit: N/C)
edge=10*10^-2;          //Value of the edge of the square (Unit:m)
theta=0;                //As the normal to the area points along the electric field , angle is zero (Unit : degree)

//Calculation

flux=elec_field*edge^2*cosd(theta);     //Calculation  of the flux of this field through a plane square area in Y-Z plane (Unit: N-m^2/C)

disp(flux,"The flux of this field through a plane square area in Y-Z plane is (Unit: N-m^2/C)")