summaryrefslogtreecommitdiff
path: root/3850/CH32/EX32.3/Ex32_3.sce
blob: eb4100bb6432e44ad739bafb87bbda13e7a6445c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

//To Calculate the Resistance of an aluminium wire

//Example 32.3

clear;

clc;

rho=2.6*10^-8;//Resistivity of Aluminium in ohm-metre

l=0.50;//Length of Aluminium wire in metres

A=2*10^-6;//Cross sectional area of aluminium wire in metre^2

R=rho*l/A;//Formula for finding the resistance of an aluminium wire

printf("Resistance of the aluminium wire= %f ohm",R);