diff options
Diffstat (limited to '291/CH4/EX4.5a/eg4_5a.sce')
-rwxr-xr-x | 291/CH4/EX4.5a/eg4_5a.sce | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/291/CH4/EX4.5a/eg4_5a.sce b/291/CH4/EX4.5a/eg4_5a.sce new file mode 100755 index 000000000..4857aff36 --- /dev/null +++ b/291/CH4/EX4.5a/eg4_5a.sce @@ -0,0 +1,5 @@ +p0= 0.2;
+p1= 0.5;
+p2=0.3;
+expec = 0*0*p0 + 1*1*p1 + 2*2*p2;
+disp(expec, "Expectation of X^2 is")
\ No newline at end of file |