summaryrefslogtreecommitdiff
path: root/3871/CH10/EX10.8/Ex10_8.sce
blob: 4a7179509ae83196cc2e73835700fc3127e457a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//===========================================================================
//chapter 10 example 8

clc;clear all;

//variable declaration
S	= 6;		//resistance in Ω
AB	= 25;		//length of AB in cm
BC	= 75;		//length of BC in cm

//calculations
R	= (AB/BC)*S;		//unknown reistance in Ω

//result
mprintf("unknown resistance  = %3.0f Ω ",R);