diff options
Diffstat (limited to '1475/CH1/EX1.58/Example_1_58.sce')
-rwxr-xr-x | 1475/CH1/EX1.58/Example_1_58.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1475/CH1/EX1.58/Example_1_58.sce b/1475/CH1/EX1.58/Example_1_58.sce new file mode 100755 index 000000000..af3cb005b --- /dev/null +++ b/1475/CH1/EX1.58/Example_1_58.sce @@ -0,0 +1,9 @@ +// Example 1.58 An unbiased die is thrown
+clc;
+clear;
+p=1/6;
+Ex=p*(1+2+3+4+5+6);
+Ey=p*(1+2+3+4+5+6);
+Ez=p*(1+2+3+4+5+6);
+Ew=p*(1+2+3+4+5+6);
+disp(Ex+Ey+Ez+Ew,"Mathematical expectation of the sum is the sum of mathematical expectations for 4 dice respectively (Es)=",Ex,"Mathematical Expectation of the number of points (Ex)=",p,"Variable x can take any of the values with probability (p)= ");
|