summaryrefslogtreecommitdiff
path: root/331/CH10/EX10.7
diff options
context:
space:
mode:
Diffstat (limited to '331/CH10/EX10.7')
-rwxr-xr-x331/CH10/EX10.7/Example_10_7.sce21
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