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/CH12/EX12.1/example12_1.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 182/CH12/EX12.1/example12_1.sce (limited to '182/CH12/EX12.1/example12_1.sce') diff --git a/182/CH12/EX12.1/example12_1.sce b/182/CH12/EX12.1/example12_1.sce new file mode 100755 index 000000000..4a01c35bd --- /dev/null +++ b/182/CH12/EX12.1/example12_1.sce @@ -0,0 +1,19 @@ +//to find the accuracy as a percentage of reading and percentage of full scale +// example 12-1 in page 355 +clc; +// Data given +r=[10 50];//scale readings +c=[-0.5 1.7];// respective correction +f=100;//full scale reading +//calculation +for n=1:2 + pr=c(n)*100/r(n);// accuracy as a percentage of reading + pf=c(n)*100/f;//accuracy as a percentage of full scale + printf("accuracy as a percentage of reading for scale reading %d= %.1f percent\n",r(n),pr); + printf("accuracy as a percentage of full scale= %.1f percent\n",pf); +end +//result +//accuracy as a percentage of reading for scale reading 10= -5.0 +//accuracy as a percentage of full scale= -0.5 +//accuracy as a percentage of reading for scale reading 50= 3.4 +//accuracy as a percentage of full scale= 1.7 \ No newline at end of file -- cgit