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 /182/CH2/EX2.3/example2_3.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 '182/CH2/EX2.3/example2_3.sce')
-rwxr-xr-x | 182/CH2/EX2.3/example2_3.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/182/CH2/EX2.3/example2_3.sce b/182/CH2/EX2.3/example2_3.sce new file mode 100755 index 000000000..005821aa5 --- /dev/null +++ b/182/CH2/EX2.3/example2_3.sce @@ -0,0 +1,15 @@ + +//example 2-2 in page 20 +clc; +//given data +V1=100;//stated voltage one +V2=80;//stated voltage two +e1=(1/100)*V1;//absolute error of v1 +e2=(5/100)*V2;//absolute error of v2 +//calculation +e=e1+e2;//absolute error for the sum of the voltages +E=V1-V2;// difference voltage +emax=(e/E)*100;//maximum percentage error +printf("E=%d V +/- %d percent",E,emax); +//result +//E=20 V +/- 25 percent
\ No newline at end of file |