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 /1034/CH1/EX1.15/Example15.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 '1034/CH1/EX1.15/Example15.sce')
-rwxr-xr-x | 1034/CH1/EX1.15/Example15.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1034/CH1/EX1.15/Example15.sce b/1034/CH1/EX1.15/Example15.sce new file mode 100755 index 000000000..fb0a8bd7b --- /dev/null +++ b/1034/CH1/EX1.15/Example15.sce @@ -0,0 +1,12 @@ +clear;
+clc;
+printf("\n \t Example 1.15");
+// how various functions grow with n, plotting of various functions is being shown.
+// like function 2^n grows very rapidly with n. and utility of programs with exponential complexity is limited to small n ( typically n<=40).
+n=[ 1 2 3 4 5 6];.......// takin value of n from 1 to 10 to observe the variation in various functions.
+plot(log (n));
+plot(2^n);
+plot(n);
+plot(n^2);
+xtitle("Plot of function values","n -->","f -->");
+printf(" \n \n X - axis is represented by values of n and Y-axis if represented by f");
|