1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
marta [7]
3 years ago
7

When you generate a random number using your calculator, the random number you get is uniformly distributed over the interval (0

, 1). Suppose 50 people in Stat 322 class generate one random number each (independently).
Engineering
2 answers:
Advocard [28]3 years ago
8 0

Answer:

The can be done by using the rand function in Mathlab.

x = rand(1,50)

Explanation:

This can be achieved by using the rand function in MathLab to generate the random numbers. We will ask the rand function to generate random numbers in 1-by-50 matrix. The 50 column of the matrix will represent the 50 people. While the row will be the random number generated for each person.

>> x=rand(1,50)

x =

 Columns 1 through 12

   0.1626    0.1190    0.4984    0.9597    0.3404    0.5853    0.2238    0.7513    0.2551    0.5060    0.6991    0.8909

 Columns 13 through 24

   0.9593    0.5472    0.1386    0.1493    0.2575    0.8407    0.2543    0.8143    0.2435    0.9293    0.3500    0.1966

 Columns 25 through 36

   0.2511    0.6160    0.4733    0.3517    0.8308    0.5853    0.5497    0.9172    0.2858    0.7572    0.7537    0.3804

 Columns 37 through 48

   0.5678    0.0759    0.0540    0.5308    0.7792    0.9340    0.1299    0.5688    0.4694    0.0119    0.3371    0.1622

 Columns 49 through 50

   0.7943    0.3112

Rufina [12.5K]3 years ago
3 0

Explanation:

The Matlab function rand() is used to generate uniformly distributed random numbers of a given size over the interval (0, 1)

Syntax:

num = rand(N, 1)

Where num is a variable to store the random numbers

N is the number of random numbers you want to generate.

Example:

For the given problem we have to generate one random number for each person in the class of 50 people.

num = rand(50,1)

It returns 50 random numbers in the range 0 to 1 which are given in the output section.

You can also modify the range of interval by adding the following code

num = x + (y - x).*rand(1,50)

Where x is the lower limit of the range and y is the upper limit of the range.

for example

num = 50 + (100 - 50).*rand(1,50)

it will generate random numbers in the range of 50 to 100. Here .* is used for the bit-wise multiplication

Note:

Do not write rand(50) it will return a 50 by 50 matrix of random numbers.

Output:

num =

  0.582139

  0.540686

  0.350985

  0.115957

  0.652881

  0.195352

  0.425562

  0.367363

  0.169750

  0.800792

  0.267118

  0.586340

  0.698618

  0.975052

  0.235557

  0.757331

  0.117483

  0.295195

  0.624606

  0.857645

  0.196915

  0.645716

  0.041070

  0.718010

  0.469060

  0.116754

  0.256292

  0.472404

  0.221682

  0.888215

  0.379500

  0.464798

  0.604826

  0.521442

  0.351424

  0.730017

  0.459121

  0.241424

  0.140979

  0.729892

  0.600992

  0.961623

  0.781636

  0.671102

  0.628573

  0.660506

  0.605492

  0.033747

  0.659619

  0.274432

You might be interested in
Design a plate and frame heat exchanger for the following problem:
qwelly [4]

Answer:

See explaination and attachment.

Explanation:

Iteration method is a repetitive method applied until the desired result is achieved.

Let the given equation be f(x) = 0 and the value of x to be determined. By using the Iteration method you can find the roots of the equation. To find the root of the equation first we have to write equation like below

x = pi(x)

Let x=x0 be an initial approximation of the required root α then the first approximation x1 is given by x1 = pi(x0).

Similarly for second, thrid and so on. approximation

x2 = pi(x1)

x3 = pi(x2)

x4 = pi(x3)

xn = pi(xn-1).

please go to attachment for the step by step solution.

8 0
3 years ago
Four race cars are traveling on a 2.5-mile tri-oval track. The four cars are traveling at constant speeds of 195 mi/h, 190 mi/h,
Snezhnost [94]

Answer:

Explanation:

1) The number of times, the car with the speed of  195 mph will cross the given point is equal to 30 minutes divided by the time taken by car to cross the 2.5 miles.

0 .5*195/2.5 = 39

Likewise, the car with the speed of 190 mph crosses the point 38 times; the car with the speed of 185 mph crosses the point 37 times

and car with the speed of 180 mph crosses it 36 times

here, the time-mean speed, vt is given below,

vt = (39*195 +38*190+37*185+36*180)/(39+38+37+38)

= 186.433 mph

and space mean speed is given by,

= (39+38+37+36)/(39/195+38/190+37/1850+36/180)

1) The number of times, the car with the speed of  195 mph will cross the given point is equal to 30 minutes divided by the time taken by car to cross the 2.5 miles.

0 .5*195/2.5 = 39

Likewise, the car with the speed of 190 mph crosses the point 38 times; the car with the speed of 185 mph crosses the point 37 times

and car with the speed of 180 mph crosses it 36 times

here, the time-mean speed, vt is given below,

vt = (39*195 +38*190+37*185+36*180)/(39+38+37+38)

= 186.433 mph

and space mean speed is given by,

= (39+38+37+36)/(39/195+38/190+37/1850+36/180)

=187.5 mph

2)  There would be only four number of observations when the aerial photo is given, therefore time mean speed, vt in that condition will be calculated as

Vt = 195+190+185+180/4

  = 187.5

Vs= 4/(1/195+1/190+1/185+1/180)

= 188.36 mph

2)  There would be only four number of observations when the aerial photo is given, therefore time mean speed, vt, in that condition will be calculated as

Vt = 195+190+185+180/4

  = 187.5

Vs= 4/(1/195+1/190+1/185+1/180)

= 188.36 mph

4 0
4 years ago
As the amplitude decreases in a wave the energy increasesTrue or false
Montano1993 [528]

Answer:

True

Explanation:

To summarise, waves carry energy. The amount of energy they carry is related to their frequency and their amplitude. The higher the frequency, the more energy, and the higher the amplitude, the more energy.

7 0
3 years ago
A cylinder of aluminum-magnesium alloy 0.5 m long is subjected to an elastic tensile stress of 10.2 MPa. The measured elastic el
elena55 [62]

Answer:

E= 15 GPa.

Explanation:

Given that

Length ,L = 0.5 m

Tensile stress ,σ = 10.2 MPa

Elongation ,ΔL = 0.34 mm

lets take young modulus  = E

We know that strain ε given as

\varepsilon =\dfrac{\Delta L}{L}

\varepsilon =\dfrac{0.34}{0.5\times 1000}

\varepsilon =0.00068

We know that

\sigma = \varepsilon  E\\\\E=\dfrac{10.2}{0.00068}\\E= 15000\ MPa\\E=15\ GPa

Therefore the young's modulus will be 15 GPa.

8 0
3 years ago
A 3-phase induction motor with 4 poles is connected to a voltage source with an amplitude of 209 Vrms and a frequency of 120 Hz.
Ket [755]

Answer:

<em>T = 25.41 Nm</em>

Explanation:

Calculating Nsync (Synchronous Speed):

Nsync = 120f/P

Nsync = 120 x 120 / 4\\Nsync = 3600 rpm

Wsync = 3600 * 2\pi /180\\Wsync = 377 rad/s

Calculating s (Slip):

s = (Nsync - Nm) / Nsync \\[tex]s = (3600-2464)/3600\\s = 0.3156

Calculating Vth (Thevenin Voltage):

Vth = Vph (Xm / \sqrt{Rs^{2} + (Xs+Xm)^{2}  })\\Vth = 209 (76 / \sqrt{(2.3)^{2} + (1.3 + 76)^{2}  }\\Vth = 205.39 V

Calculating Rth (Thevenin Resistance):

Rth = Rs (Xm/Xs + Xm)^{2} \\Rth = 2.3 (76/1.3 + 76)^{2} \\Rth = 2.22 ohm

Calculating Xth (Thevenin Reactance):

Xth = Xs = 1.3 ohm

Calculating Torque:

T = (3Vth^{2}Rr/s) / (Wsync[(Rth+Rr/s)^{2} + (Xth + Xr)^{2}])\\T = (3*205.39*0.7/0.3156) / 377[(2.22+0.7/0.315)^{2} + (1.3+1.8)^{2}]

T = 280699 / 377 [19.69 + 9.61]

<em>T = 25.41 Nm</em>

4 0
4 years ago
Other questions:
  • How do batteries and other types of power sources make physical computing systems more mobile?
    15·2 answers
  • Give two causes that can result in surface cracking on extruded products.
    11·1 answer
  • A. Derive linear density expressions for BCC [110] and [111] directions in terms of the atomic radius R.
    7·1 answer
  • What friction rate should be used to size a duct for a static pressure drop of 0.1 in wc if the duct has a total equivalent leng
    9·1 answer
  • ¿Cómo nos podría ayudar una hoja de cálculo en nuestro estudio?
    11·1 answer
  • Give five examples of
    14·1 answer
  • An engine jack is used to lift a 265-lb engine 6'. How much work, in ft-lb, is performed?
    11·1 answer
  • what do you expect the future trends of an operating system in terms of (a) cost (b) size (c) multitasking (d) portability (e) s
    12·1 answer
  • Can someone tell me what car, year, and model this is please
    15·2 answers
  • Think about a good game story that made you feel a mix of positive and negative emotions. What was the story, what emotions did
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!