summaryrefslogtreecommitdiff
path: root/2252/CH6/EX6.1/Ex6_1.sce
blob: ec52e74abf5dea3fa5d707ee57620b8d73e5a60c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

//plotting graph for i1
theta=linspace(0,2*%pi,100)
i1=50*sin(theta)+50*sin(theta-%pi/4)
plot(theta,i1)
//plotting graph for i2
theta=linspace(0,2*%pi,100)
i2=50*cos(theta)+50*cos(theta+%pi/4)
plot(theta,i2,"o")
//plotting graph for i3
i3=50*cos(theta)-20*sin(theta)
plot(theta,i3,"-*")
xtitle("Graphs of i1(-),i2(oo) and i3(-*)","theta","current")
//round off error while plotting graphs