summaryrefslogtreecommitdiff
path: root/83/CH14/EX14.3/example_14_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '83/CH14/EX14.3/example_14_3.sce')
-rwxr-xr-x83/CH14/EX14.3/example_14_3.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/83/CH14/EX14.3/example_14_3.sce b/83/CH14/EX14.3/example_14_3.sce
new file mode 100755
index 000000000..7b53d0abe
--- /dev/null
+++ b/83/CH14/EX14.3/example_14_3.sce
@@ -0,0 +1,16 @@
+//Chapter 14
+//Example 14.3
+//page 538
+//To estimate the values of the random variables x1 and x2 using WLSE
+clear;clc;
+i=0; x=1;y=8.5
+printf('---------------------------------------\n');
+printf('iteration\t\tx(l)\n');
+printf('---------------------------------------\n');
+printf('\t%d\t\t%0.3f\n',i,x);
+for i=1:1:10
+ k=(1/3)*x^-2 //expression for the value of k has been printed wrongly in the textbook
+ x=x+(k)*(y-x^3);
+ printf('\t%d\t\t%0.3f\n',i,x);
+
+end