From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 291/CH4/EX4.5c/eg4_5c.sce | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 291/CH4/EX4.5c/eg4_5c.sce (limited to '291/CH4/EX4.5c') 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 -- cgit