summaryrefslogtreecommitdiff
path: root/3836/CH15/EX15.1/Ex15_1.sce
blob: 534cd8a5ba4968a02dce3975476191bb785d029f (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Initialisation
w=1000                 //Angular Frequency       
L=10**-3               //Inductance

//Calculation
Xl=w*L                 //Reactance

//Result
printf("\n Reactance, Xl = %d Ohm",Xl)