blob: e965be1ba9175180a33e9f4d31c529a6f5a7bc31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//scilab 5.4.1
//windows 7 operating system
//chapter 6:Diode Circuits
clc;
clear;
//given data
Vdc=20; //DC value in V
Vpp=1; //Peak to peak ripple voltage in V
Vp=Vpp/2; //Peak ripple voltage in V
Vrms=Vp/sqrt(2); //Vrms voltage in V
S=Vrms/Vdc; //Ripple Factor
format("v",7)
disp(S,'Ripple factor=')
T=S*100;
format("v",5)
disp("%",T,'Percentage Ripple=')
//end
|