summaryrefslogtreecommitdiff
path: root/3836/CH15/EX15.2/Ex15_2.sce
blob: 1bec40dcf45e21cefb9edff2a308943635e89fcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//

//Initialisation
f=50                   //frequency
C=2*10**-6             //Capacitance

//Calculation
w=2*%pi*f                 //Angular Frequency  
Xc=1/(w*C)                 //Reactance

//Result
printf("\n Reactance, Xl = %.2f KOhm",Xc/1000)