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 /575/CH2/EX2.7.2/2_7_2.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 '575/CH2/EX2.7.2/2_7_2.sce')
-rwxr-xr-x | 575/CH2/EX2.7.2/2_7_2.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/575/CH2/EX2.7.2/2_7_2.sce b/575/CH2/EX2.7.2/2_7_2.sce new file mode 100755 index 000000000..94a3b5338 --- /dev/null +++ b/575/CH2/EX2.7.2/2_7_2.sce @@ -0,0 +1,13 @@ +clc
+pathname=get_absolute_file_path('2_7_2.sce')
+filename=pathname+filesep()+'272.sci'
+exec(filename)
+disp(sqrtT);
+sx=sum(sqrtT);sx2=sum(T);sy=sum(M);sxy=sum(sqrtT.*M);n=length(T);
+A=[sx,n;sx2,sx]; B=[sy;sxy]; p=A\B;
+a=p(1,1);b=p(2,1);
+clf()
+xtitle('2.7.2.sce','T1/2','mdot','boxed')
+plot2d(sqrtT,M,style=3);
+printf("slope=%f",a);
+printf("\n intercept=%f",b);
\ No newline at end of file |