### Explain how to implement the linear congruential algorithm

Assignment Help Electrical Engineering
##### Reference no: EM13226549

Write a MATLAB script to implement the linear congruential algorithm to generate 5000 pseudo-random variates in the interval (0,1). Use the following parameters: seed=17; A=1103515245; M=2147483648; C=12345.

Obtain the sample mean of generated numbers using the MATLAB function mean.

Parameters
The parameters M, C, and A in the linear congruential generator are chosen to make the sequence as random as possible.
Choices for these values must meet the following necessary and sufficient conditions contained in the theorem proved by Hull Dobell (1962).
1. C must be relatively prime to M (that is, their greatest common divisor is 1)
2. B = A-1 is a multiple of p, for every prime p that divides M
3. B is a multiple of 4 if M is a multiple of 4.

#### Questions Cloud

 Find rates at which heat is absorbed from the hot reservoir : The following heat engines produce power of 95,000 kW. Determine in each case the rates at which heat is absorbed from the hot reservoir and discarded to the cold reservoir. A Carnot engine operates between heat reservoirs at 750 K and 300 K. Depict and discuss the mechanism of the diels-alder reaction : Draw and discuss the mechanism of the Diels-Alder reaction (with arrows to show the electron movements). Draw the orientation of the reacting p-orbitals and indicate how they overlap to form product. What is the elasticity coefficient for each price : Prepare a graph showing the breakeven point and any profit or loss at the current price of \$7. Explain to the Golden Star management the implications of this analysis and What is the elasticity coefficient for each price between \$6.50 and \$7.50? I.. Explain each of the five most prevalent revenue sources : Thoroughly explain each of the five most prevalent revenue sources for a professional sport team. Which do you think is most important? Least important? Why do you think this way. Explain how to implement the linear congruential algorithm : Write a MATLAB script to implement the linear congruential algorithm to generate 5000 pseudo-random variates in the interval (0,1). Use the following parameters: seed=17; A=1103515245; M=2147483648; C=12345. Explain a couple drops of phenophalein indicator : a couple drops of phenophalein indicator and then was titrated with 8.1mL of NaOH until it turned pink. what is the concentration of NaOH? Define the compound mgso4 is called epsom salts : The compound MgSO4 is called Epsom salts. How many grams will you need to prepare a bath containing 5.80 moles of Epsom salts? Express your answer using three significant figures. Design a voltage-divider network to supply the load : The voltage across the load must remain between 4.7 and 5.0 V for all values of load current. Design a voltage-divider network to supply the load. You may assume that resistors of any value desired are available. Explain intial concentration when the initial concentration : How long will it take for the concentration of XY to decrease to 12.5% of its intial concentration when the initial concentration is 0.100M? When the initial concentration is 0.200M?

### Write a Review

#### Define murray loop test and locating faults

Murray Loop Test and Locating Faults, Q.1 (a) Using the Murray Loop test, determine the distance to an earth fault on one of the cores of a uniform three-core underground cable. Ra = 2 ohms, Rb = 1 ohm

#### Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

#### Find the resistance and inductance of the circuit

an inductive circuit takes a current of 10.5 amperes when connected to a 500 volts 50c/s supply. this current rises to 12.5 amperes when frequency is reduced to 40 c/s. the voltage being maintained constant. find the resistance and inductance of t..

#### What is the relative permittivity er of the dielectric

Will the electric field inside change (how much if yes)? Will the stored energy in the capacitor change (how much if yes)?

#### Determine the bus voltages at midnight

Draw the positive, negative, and zero sequence networks for the system. Include all impedance values and determine the bus voltages at midnight? What problem(s) do you detect?

#### Find the steady state temperature distribution of the tray

The tray heats up according to ut = c2?u + h(x, y) where h(x, y) = 5(1 - sin(8πy)) and c2 = 10-4. Assume that u = 200 along each edge. Find the steady state temperature distribution of the tray.

#### Design a through-beam photoelectric sensor

When the beam is not broken, light from the transmitter hits the receiver and turns on the output transistor from the receiver. Their purpose is to detect objects as the objects break the beam. design a through-beam photoelectric sensor

#### Define maximum number and the geometric mean

I started writing a program and need help. I need to be able to enter up to 15 numbers and output the minimum number, maximum number and the geometric mean.

#### What aspects of the software need to be considered

If designing a computer configuration for use as a workstation for one specific application, what aspects of the software need to be considered as part of the design process?

#### Determine the speed of the wave travelling on the line

An overhead line with an inductance of 1.33 mH/km and capacitance of 8.34 nF/km is connected to an underground cable with an inductance of 0.266 mH/km and capacitance of 166 nF/km.

#### Explain what is the resolution of each quantizer

Supply the quantisation levels (including zero) that are available. Do this for both the three and 4-bit ADC in table form. What is the resolution of each quantizer?

#### Does this arrangement violate osha standards fall protection

A painter is standing on a work platform that is 27 feet above ground level. For fall protection, the worker''s safety harness D-ring is attached to a 12-foot shock absorbing lanyard that is securely fastened to the structure at a point 40 feet above..