Science 2 Assignment 2 Solved

34.99 $

Description

5/5 - (1 vote)

Ij+1 = (AIj + C) mod M
where A = 106, C = 1283, M = 6075 and I1 = 1
You can use this random number generator to get N random numbers (I1, I2, … IN)
1. xsinx in the range [-Ï€,Ï€]
2. x2cosx in the range [-π/2, π/2]
3. ecosx in the range [-3,3]
4. excosx in the range [-Ï€/2, Ï€/2] 5. cosx – cos2x in the range [-Ï€/2, Ï€/2]
To compute probabilities (in subparts a and b) and mean (in subpart c) simulate the experiments appropriate number of times (atleast 10000).
a = – (Roll Number % 5 + 1); b = Roll Number % 5 + 1
Therefore, if your Roll Number is 2021101132, then a = -3, b = 3.

  • Assignment2-d2r4tf.zip