diff options
Diffstat (limited to 'Working_Examples/83/CH14/EX14.3')
-rwxr-xr-x | Working_Examples/83/CH14/EX14.3/example_14_3.sce | 16 | ||||
-rwxr-xr-x | Working_Examples/83/CH14/EX14.3/result_example_14_3.txt | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/Working_Examples/83/CH14/EX14.3/example_14_3.sce b/Working_Examples/83/CH14/EX14.3/example_14_3.sce new file mode 100755 index 0000000..7b53d0a --- /dev/null +++ b/Working_Examples/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 diff --git a/Working_Examples/83/CH14/EX14.3/result_example_14_3.txt b/Working_Examples/83/CH14/EX14.3/result_example_14_3.txt new file mode 100755 index 0000000..2a65a97 --- /dev/null +++ b/Working_Examples/83/CH14/EX14.3/result_example_14_3.txt @@ -0,0 +1,16 @@ + +--------------------------------------- +iteration x(l) +--------------------------------------- + 0 1.000 + 1 3.500 + 2 2.565 + 3 2.141 + 4 2.045 + 5 2.041 + 6 2.041 + 7 2.041 + 8 2.041 + 9 2.041 + 10 2.041 + |