summaryrefslogtreecommitdiff
path: root/3802/CH15/EX15.4/Ex15_4.sce
blob: cafb67074a8965c2376f388485ca3521583951ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014

//Ex15_4.sce.

clc;
clear;
//There is a mistake in the question , given height is 5 instead of 4
h=4;
x=[2:2:14];
for i=1:length(x)

Ed(i)=(64/(4^2+x(i)^2)^(3/2))+1;
Eb(i)=(256/(4^2+(x(i)/2)^2)^(3/2));

end
xlabel("x-axis")
ylabel("y-axis")
title("Curves of L.H.S and R.H.S for different values of x")
plot(x,[Ed Eb])

legend('LHS','RHS')