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.

Reference no: EM13226549

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?

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

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

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd