EBK MATLAB: AN INTRODUCTION WITH APPLIC
EBK MATLAB: AN INTRODUCTION WITH APPLIC
5th Edition
ISBN: 8220102007642
Author: GILAT
Publisher: YUZU
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 7, Problem 40P

In lottery the player has to guess correctly r numbers that are drawn out of n numbers. The probability, P, of guessing m numbers out of the r numbers can be calculated by the expression:

P = C r , m C ( n r ) , ( r m ) C n , r

where C x , y = x ! y ! ( x y ) ! . Write a user-defined MAILAB function that calculates P. For the function name and arguments, use P=ProbLot-tery (m, r, n). The input arguments are m. the number of correct guesses:

r, the number of numbers that need to be guessed: and n. the number of numbers available. Use a subfunction inside ProbLottery for calculating

Cx,y.

(a) Use ProbLottery for calculating the probability of correctly selecting 3 of 6 numbers that are drawn out of 49 numbers in a lottery game.

(b) Consider a lottery game in which 6 numbers are drawn out of 49 numbers. Write a program in a script file that displays a table with seven rows and two columns. The first column has the numbers 0, 1, 2, 3, 4, 5, and 6, which are the number of numbers guessed correctly. The second column show the corresponding probability of making the guess.

Blurred answer
Students have asked these similar questions
A plane wave propagating through a medium with &,,-8 μr = 2 has: E = 0.5 e-j0.33z sin (108 t - ẞz) ax V/m. Determine (a) ẞ (b) The loss tangent (c) Wave impedance (d) Wave velocity (e) H field
2) The phase voltage at the terminals of a balanced three-phase Y-connected load is 2400 V. The load has an impedance of 16+j12 2/6 and is fed from a line having an impedance of 0.10+j0.80 2/6. The Y- connected source at the sending end of the line has a positive phase sequence and an internal impedance of 0.02+j0.16 2/6. Use the a-phase voltage at the load as the reference. a) Construct the a-phase equivalent circuit of the system b) Calculate the line currents IaA, IbB, and Icc c) Calculate the phase voltages at the terminals of the source, Van, Vbn, Vcn- d) Calculate the line voltages at the source, Vab, Vbc and Vca. e) Calculate the internal phase-to-neutral voltages at the source, Va'n, Vb'n, Ve'n,
1) • A balanced three-phase circuit has the following characteristics: Y-Y connected The line voltage at the source is Vab = 120√3(0°V • The phase sequence is positive The line impedance is 2+ j3 2/0 The load impedance is 28 + j37 02/0 a) [4 pts] Draw the single phase equivalent circuit for the a-phase. b) [2 pts] Calculate the line current IaA in the a-phase. c) [4 pts] Calculate the line voltage VAB at the load in the a-phase.
Knowledge Booster
Background pattern image
Electrical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:PEARSON
Text book image
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:9781337900348
Author:Stephen L. Herman
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Electrical Engineering
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Text book image
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:9780078028229
Author:Charles K Alexander, Matthew Sadiku
Publisher:McGraw-Hill Education
Text book image
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:9780134746968
Author:James W. Nilsson, Susan Riedel
Publisher:PEARSON
Text book image
Engineering Electromagnetics
Electrical Engineering
ISBN:9780078028151
Author:Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:Mcgraw-hill Education,
Finding Local Maxima and Minima by Differentiation; Author: Professor Dave Explains;https://www.youtube.com/watch?v=pvLj1s7SOtk;License: Standard YouTube License, CC-BY