summaryrefslogtreecommitdiff
path: root/1859/CH4/EX4.5/exa_4_5.sce
blob: 307a21b99d91894bb6dc1183afaba0f0e676297e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Exa 4.5
clc;
clear;
close;
// Given data
Im= 1;// in mA
Im=Im*10^-3;// in amp
Rm= 100;// in ohm
V=1.2;// in volt
R1= V/Im;// in ohm
disp(R1*10^-3,"Resistance in kohm")
Vout= Im*(Rm+R1);// in volt
disp(Vout,"Output voltage in volt")