summaryrefslogtreecommitdiff
path: root/291/CH4/EX4.5c/eg4_5c.sce
diff options
context:
space:
mode:
Diffstat (limited to '291/CH4/EX4.5c/eg4_5c.sce')
-rwxr-xr-x291/CH4/EX4.5c/eg4_5c.sce5
1 files changed, 5 insertions, 0 deletions
diff --git a/291/CH4/EX4.5c/eg4_5c.sce b/291/CH4/EX4.5c/eg4_5c.sce
new file mode 100755
index 000000000..4857aff36
--- /dev/null
+++ b/291/CH4/EX4.5c/eg4_5c.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