From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2297/CH5/EX5.7/Ex5_7.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 2297/CH5/EX5.7/Ex5_7.sce (limited to '2297/CH5/EX5.7/Ex5_7.sce') diff --git a/2297/CH5/EX5.7/Ex5_7.sce b/2297/CH5/EX5.7/Ex5_7.sce new file mode 100755 index 000000000..3d280f268 --- /dev/null +++ b/2297/CH5/EX5.7/Ex5_7.sce @@ -0,0 +1,19 @@ +// Example 5.7;apparent resistance of the unknown resistor,actual resistance of the unknown resistor and percentage error +clc; +clear; +// given : +format('v',7) +v=200;//voltage in volts +i=5;//current in mA +tr=v/i;//resistance in kilo ohms +disp("part (a)") +disp(tr,"apparent resistance of unknown resistor is,(kilo-Ohm)=") +S=1000;//sensivity in ohms/V +V1=250;//voltage in volts +rv=V1*S*10^-3;//resistance in kilo ohms +rx=(V1*tr)/(V1-tr);//resistance in kilo ohms +disp("part (b)") +disp(rx,"actual resistance of unknown resistor is,(kilo-Ohm)=") +per=(rx-tr)/rx;//percentage error +disp("part (c)") +disp(per*100,"percentage error is,(%)=") -- cgit