blob: 2046a1c3e893cda69b8efb30d1b220afc0cbfef4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clear
//
//Initialisation
Ic=2 //sinusoidal Current
C=10*10**-3 //Capacitance
w=25 //Angular Frequency
//Calculation
Xc=1/(w*C) //Reactance
Vc= Ic*Xc //Voltage
//Result
printf("\n Voltage appear across the capacitor, V = %d V r.m.s",Vc)
|