[SOLVED] Science 2 Assignment 2

25.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

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.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.