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 --- 569/CH3/EX3.22/3_22.sci | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 569/CH3/EX3.22/3_22.sci (limited to '569/CH3/EX3.22') diff --git a/569/CH3/EX3.22/3_22.sci b/569/CH3/EX3.22/3_22.sci new file mode 100755 index 000000000..6e59218d6 --- /dev/null +++ b/569/CH3/EX3.22/3_22.sci @@ -0,0 +1,15 @@ +//to find the mean,standard deviation, probable error and range + +clc; +x=[41.7 42 41.8 42 42.1 41.9 42 41.9 42.5 41.8]; +X=sum(x); disp(X); +d=[-.27 .03 -.17 .03 .13 -.07 .03 -.07 .53 -.17]; +d_2=sum(d^2); +n=10; +disp(X/n,'mean length(deg C)'); +disp(sqrt(d_2/n),'standard deviation(if data is infinite)(deg C)'); +disp(sqrt(d_2/(n-1)),'standard deviation(deg C)'); +r1=.6745*sqrt(d_2/(n-1)); +disp(r1,'probable error of 1 reading(deg C)'); +disp(r1/sqrt(n-1),'probable error of mean(deg C)'); +disp(max(x)-min(x),'range(deg C)'); \ No newline at end of file -- cgit