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

  What is the relative permittivity of the dielectric material

Two rectangular waveguides, one air filled with internal dimensions 2cm x 1cm and the other dielectric filled with internal dimensions 1cm x 0.5cm, have the same cut-off frequency for the dominant mode. what is The relative permittivity of the die..

  What is the sinusoidal expression for the current

The voltage across a 0.2 H coil is given. What is the sinusoidal expression for the current?

  Sketch the output signal waveform

Assume that in addition to the sine-wave signal you have a dc reference voltage of 1.5 V available. Sketch the output signal waveform.

  Explain finding rms current through capacitor and inductor

Finding rms current through Capacitor and Inductor, A circuit consists of a sine wave signal generator and a reactive component (L or C). The output of the generator is a sine wave with a peak amplitude of 8.8 volts at a frequency of 10.0 kHz.

  Explain an electric heating element is connected

An electric heating element is connected to a 110 v circuit and a current of 3.2 A is flowing through the element. How much energy is used up during a period

  What value of the average signal power is required

"Power Outage" refers to that the receive signal power falls below a certain threshold. Consider for a RF signal in a Rayleigh fading channel with average receive signal power 22 = - 80dBm. What will be the power outage probability of this channel..

  Consider a communications channel with a passband

Consider a communications channel with a passband of 3 kHz to 27.4 kHz. A modem will be connected to this communications channel and the modem will operate with a signaling rate that is 0.56 the maximum allowable signaling rate for this communicat..

  Determine the capacitance of each capacitor

Each of the capacitance units is built of 4 similar 100V capacitors. Determine the capacitance of each capacitor.

  Explain the parking lot of the spenditall megamall

The parking lot of the Spenditall Megamall has an area of 128 ac. It is partially landscaped to provide some areas of grass. Assume that an average of 63% of the water that falls on the parking lot will flow

  Define pulse generator

Pulse Generator, Using one 555 timer, design a pulse generator that will have the following continuously variable ranges

  Define a shunt regulator utilizes a zener diode

A shunt regulator utilizes a zener diode whose voltage is 5.1V at a current of 50 ma and whose incremental resistance is 8 ohms. The diode is fed from a supply of 12 V nominal voltage through a 220 ohm resistor

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

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