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 /659/CH4/EX4.2cs | |
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 '659/CH4/EX4.2cs')
-rwxr-xr-x | 659/CH4/EX4.2cs/Casestudy4_2_output.PNG | bin | 0 -> 14938 bytes | |||
-rwxr-xr-x | 659/CH4/EX4.2cs/casestudy4_2.sce | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/659/CH4/EX4.2cs/Casestudy4_2_output.PNG b/659/CH4/EX4.2cs/Casestudy4_2_output.PNG Binary files differnew file mode 100755 index 000000000..6a88b1f76 --- /dev/null +++ b/659/CH4/EX4.2cs/Casestudy4_2_output.PNG diff --git a/659/CH4/EX4.2cs/casestudy4_2.sce b/659/CH4/EX4.2cs/casestudy4_2.sce new file mode 100755 index 000000000..97e9c2893 --- /dev/null +++ b/659/CH4/EX4.2cs/casestudy4_2.sce @@ -0,0 +1,20 @@ +// Case study:chapter 4
+// 2.Reliability Graph
+
+LAMBDA=0.001;
+for i=1:27
+ printf("--");
+end
+printf("\n");
+for t=0:150:3000
+ r=exp(-LAMBDA*t);
+ R=int32(50*r+0.5);
+ printf("|");
+ for i=1:R
+ printf("*");
+ end
+ printf("#\n");
+end
+for i=1:2
+ printf("|\n");
+end
|