summaryrefslogtreecommitdiff
path: root/2672/CH3/EX3.6/Ex3_6.sce
blob: f11bbb10bfe0f16c4db08c1be2131472478c3511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example 3_6
clc;
clear;
close;
format('v',5);
//given data :
L=0.5;//H
V=230;//V
f=50;//Hz
Vm=sqrt(2)*V;//V
XL=2*%pi*f*L;//ohm
I=V/XL;//A
Im=sqrt(2)*I;//A
disp("Equations are :  ");
disp("V="+string(Vm)+"*sin"+string(2*%pi*f)+"*t");
disp("i="+string(Im)+"*sin("+string(2*%pi*f)+"*t-%pi/2)");
//Answer is not accurate in the book.