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 /331/CH10/EX10.7 | |
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 '331/CH10/EX10.7')
-rwxr-xr-x | 331/CH10/EX10.7/Example_10_7.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/331/CH10/EX10.7/Example_10_7.sce b/331/CH10/EX10.7/Example_10_7.sce new file mode 100755 index 000000000..a6c190386 --- /dev/null +++ b/331/CH10/EX10.7/Example_10_7.sce @@ -0,0 +1,21 @@ +//Caption:Simple (Single) Exponential Smoothing Method
+//Example10.7
+//Page385
+clear;
+clc;
+F1 = 600;//forecast of a product for the first week of march
+D1 = 550; //Demand of the first week
+D2 = 620; //Demand of the second week
+alpha = 0.2; //smoothing constant
+F2 = F1+alpha*(D1-F1);
+disp(F2,'Forecast for the second week of march F2=')
+F3 = F2+alpha*(D2-F2);
+disp(F3,'Forecast for the third week of march F3=')
+//Result
+//Forecast for the second week of march F2=
+//
+// 590.
+//
+// Forecast for the third week of march F3=
+//
+// 596.
\ No newline at end of file |