summaryrefslogtreecommitdiff
path: root/3802/CH1/EX1.2/Ex1_2.sce
blob: b5435d336de0eb6e7c0ab8f8f01d70c9a6ef019d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014

//Ex1_2.sce.

clc;
clear;
R25=120;           //resistance of copper wire at 25 degree celsius
T1=25;             //temperature1 in degree celsius
T2=55;             //temperature in degree celsius
alphazero=4.2e-3;   //temperature coefficient
R55=(R25*(1+(T2*alphazero)))/(1+(T1*alphazero));            //resistance of the copper wire at a temperature of 55 degree celsius
printf("The resistance value  for the resitor(copper wire)=%3.3f ohms",R55)