blob: a559736b6259473bf8d046c70fa685244baa53a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Ex 4.4 page 160
clc;
clear;
close;
R=30;// ohm
Vs=230;// V
f=50;// Hz
alpha = 45;// degree
Vor=Vs*sqrt(1/%pi*(%pi-alpha*%pi/180+sin(2*alpha*%pi/180)/2));// V
Ior=Vor/R;// A
printf('\n rms load voltage = %.2f V', Vor)
printf('\n rms load current = %.2f A', Ior)
|