summaryrefslogtreecommitdiff
path: root/3745/CH1/EX1.64/Ex1_64.sce
blob: f7a7e6857128cd02c77d79b06ee52d995d2d0fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Ex 64 Page 405

clc;clear;close;
// Given
//i=0.25+0.25*sin(omega*t)-0.25*sin(2*omega*t)
I0=0.25;I1m=0.25;I2m=-0.25;//from above expression
Iav=I0;//A
R=800;//ohm
L=1/1000;//H

Irms=sqrt(I0**2+(I1m/sqrt(2)**2+(I2m/sqrt(2)**2)));//A
printf("Reading on hot wire instrument = %.3f A",Irms)
VR=Irms*R;//V
printf("\n Reading on electrostatic voltmeter across 800 ohm = %d V",VR)
//vl_dash=L*di/dt=300*cos(w*t)-400*cos(2*w*t)
vl1=300;vl2=4;//V
vl=sqrt((300/sqrt(2))**2+(400/sqrt(2))**2)
printf("\n Reading on electrostatic voltmeter across 1 mH inductor = %d V",vl)