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 --- 182/CH2/EX2.3/example2_3.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 182/CH2/EX2.3/example2_3.sce (limited to '182/CH2/EX2.3/example2_3.sce') 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 -- cgit