4. Formulate a Linear Congruential Generator (LCG) with a=7, c=5, m-15, xo-789. a. (15%) List the i, xi, and u; in a table similar to the example given in class. Coverage: i = 0 to 20. What is the length of the period? b. (5%) When i=200, what would be the value of x200 and u200?

Mathematics For Machine Technology
8th Edition
ISBN:9781337798310
Author:Peterson, John.
Publisher:Peterson, John.
Chapter29: Tolerance, Clearance, And Interference
Section: Chapter Questions
Problem 14A
icon
Related questions
Question

Use Excel to simulate:

 

 

 

4. Formulate a Linear Congruential Generator (LCG) with a=7, c=5, m=15, Xo-789.
a. (15%) List the i, xi, and u; in a table similar to the example given in class. Coverage: i = 0 to 20. What is
the length of the period?
b. (5%) When i=200, what would be the value of x200 and u200?
Transcribed Image Text:4. Formulate a Linear Congruential Generator (LCG) with a=7, c=5, m=15, Xo-789. a. (15%) List the i, xi, and u; in a table similar to the example given in class. Coverage: i = 0 to 20. What is the length of the period? b. (5%) When i=200, what would be the value of x200 and u200?
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
PREALGEBRA
PREALGEBRA
Algebra
ISBN:
9781938168994
Author:
OpenStax
Publisher:
OpenStax
Algebra & Trigonometry with Analytic Geometry
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage
Trigonometry (MindTap Course List)
Trigonometry (MindTap Course List)
Trigonometry
ISBN:
9781305652224
Author:
Charles P. McKeague, Mark D. Turner
Publisher:
Cengage Learning
Linear Algebra: A Modern Introduction
Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning
Elementary Geometry For College Students, 7e
Elementary Geometry For College Students, 7e
Geometry
ISBN:
9781337614085
Author:
Alexander, Daniel C.; Koeberlein, Geralyn M.
Publisher:
Cengage,