summaryrefslogtreecommitdiff
path: root/3809/CH6/EX6.1/EX6_1.sce
blob: a1318dcda98e6bba07dd79ffbf6b1a86a630d065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Chapter 6, Example 6.1
clc
//Initialisation
w=1000                       //angular frequency
L=10**-3                     //inudctance in henry


//Calculation
Xl=w*L                        //reactance in ohm

//Results
printf("Reactance, Xl = %d Ohm",Xl)