blob: 07c36f13c5606531eeef28f3437931953c9156dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//example 5.7
clc; funcprot(0);
// Initialization of Variable
Vi=350;//voltage
f=100;//frequency
Rf=10000;//resistance
Ri=520;
//calculation
Vp=(1+(Rf/Ri))*Vi*2^.5;
disp(Vp/1000,"load voltage in V:")
clear()
|