summaryrefslogtreecommitdiff
path: root/3769/CH6/EX6.21/Ex6_21.sce
blob: b1fe38696acb069a5254ffb1a32d6933926fa05e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clear
//Given
R=20                       //ohm
L=10                       //m
pd=10**-3                  //V/m
V=10**-2                   //Volts

//Calculation
I=V/R
R11=(2/I)-R

//Result
printf("\n The value of resistance is %0.3f  ohm", R11)