blob: 06581c30a1af9bf10aad0d3703c69b8ab22a272d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Chapter 16, Example 16.5
clc
//Initialisation
dv=20 //change in voltage w.r.t time
t=10*10**-3 //time in sec
//Calculation
vc=t*dv //peak ripple voltage on capacitor
//Results
printf("Peak Ripple Voltage = %.1f V",vc)
|