summaryrefslogtreecommitdiff
path: root/542/CH11/EX11.18
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /542/CH11/EX11.18
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '542/CH11/EX11.18')
-rwxr-xr-x542/CH11/EX11.18/Example_11_18.sce36
1 files changed, 36 insertions, 0 deletions
diff --git a/542/CH11/EX11.18/Example_11_18.sce b/542/CH11/EX11.18/Example_11_18.sce
new file mode 100755
index 000000000..cf349bac7
--- /dev/null
+++ b/542/CH11/EX11.18/Example_11_18.sce
@@ -0,0 +1,36 @@
+//Example 11.18
+
+clear;
+clc;
+
+printf("\tExample 11.18\n");
+
+R=[1 2 5 10];
+Rm=0.83;
+
+nm=8.5-1;
+
+//X are points on X-axis of graph
+for i=1:4
+ X(i)=(R(i)-Rm)/(R(i)+1);
+end
+
+//Values at Y-axis for corresponding values of X-axis in graph are given by
+Y=[0.55 0.32 0.15 0.08];
+
+//where Y=(n+1)-(nm+1)/(n+2)
+
+
+for i=1:4
+ n=poly([0],'x');
+ N(i)=roots(((n+1)-(nm+1))-(Y(i)*(n+2)));
+end
+
+printf("\nThe values of R and n are\n");
+for i=1:4
+ printf("\n\t%d \t %.2f",R(i),N(i));
+end
+
+printf("\n\nThe change in R and n can be seen as above\n");
+
+//End \ No newline at end of file