blob: 7e06e9cbd89890207f7360f4f585e2ff9e400b0c (
plain)
1
2
3
4
5
6
7
|
V1=230 //Defining voltage equations in rectangular form
V2=-115+%i*200;
V3=-115-%i*200;
V=V1+V2+V3;
[Ro,Theta]=polar(V);
function y=f(t), y=Ro*sqrt(2)*sin(t+Theta), endfunction
disp("Volts",Ro*sqrt(2),"Maximum Voltage value")
|