blob: 1bc46b3cacdf98e10973f5da2cf3a72af292e57a (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
clear
//input
l1=82.3//balance length with switch open
l2=75.8//balance length with switch closed
R=9//resistance
//calculation
r=(R*l1/l2)-R//internal resistance
//output
printf("the internal resistence is %3.3f ohm",r)
|