summaryrefslogtreecommitdiff
path: root/3836/CH20/EX20.2/Ex20_2.sce
blob: 28d7106951c7116d65737018a24b5c7088f3e35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//

//Introduction
idd=4*10**-3                        //current in ampere
vo=8                               //voltage
vdd=12                             //voltage

//Calculation
Rd=vo*(vdd-idd)**-1

//Result
printf("\n Rd = %.2f kOhm",Rd)