summaryrefslogtreecommitdiff
path: root/1991/CH11/EX11.3/3.sce
blob: 1b0e9d8ccaed40e4d6ba3fc54dee75df77050397 (plain)
1
2
3
4
5
6
7
8
9
10
clc
clear
//input
v1=7.5//initial voltag
v2=11.5//final voltage
ic=18*10^-6//collector current
//calculation
r=(v2-v1)/ic//output resistance
//output
printf("the output resistance is %2.2e ohm ",r)