summaryrefslogtreecommitdiff
path: root/876/CH4/EX4.2/Ex4_2t.txt
blob: 5718912f7fefd14ac1e6cce7e35ac593494e0b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//caption:Find output voltage
//Ex4.2
clc
clear
close
R1=1000//resistance of first arm(in ohm)
R2=1000//resistance of second arm(in ohm)
R3=1000////resistance of third arm(in ohm)
V=10//applied voltage(in V)
T=20//temperature of thermometer(in degree centigrate)
Ro=1020//resistance of thermometer(in ohm)
V1=(R2/(R1+R3))*V
V2=(Ro/(R2+Ro))*V
Vo=V2-V1
disp(Vo,'output voltage(in V)=')