diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2297/CH5/EX5.7/Ex5_7.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2297/CH5/EX5.7/Ex5_7.sce')
-rwxr-xr-x | 2297/CH5/EX5.7/Ex5_7.sce | 19 |
1 files changed, 19 insertions, 0 deletions
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,(%)=") |