Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment, you must use variables, loops, if statements, your own function definitions and function calls and callback functions. For now, you may NOT

In this assignment, you must use variables, loops, if statements, your own function definitions and function calls and callback functions. For now, you may NOT use any of the powerful functions available in python modules, with two exceptions: you may import functions from the math module and the copy module.
You must include docstrings for all your functions and reasonable comments throughout your code.
See your MAE 3013 textbook for a reminder of:
The Secant Method for finding the solution (root or zero) or a nonlinear equation.
The Simpson's 13 rule for numerical integration.
The Gauss-Sidel method in section 20.3
a) Write a function defined as: lef Probability(PDF, args, C,GT=True ):
PDE: is a callback function for the Gaussian/normal probability density function f(x)=122e-12(-)2. The callback function (PDF) should take a single argument as a tuple, which contains values for x,(population mean), and (population standard deviation).
args: is a tuple containing and
c: is a floating point value (i.e, the upper limit of integration)
GT: is a boolean indicating if we want the probability of x being greater than True) or less than C(GI=False)
To find the probability of 13x=-5*CP(x105|N(100,12.5))x105x=100,0=12.5P(x>+2|N(100,3))P(x1.00|N(0,1))=Y.YY
P(x>181.00|N(175,3))=Z.ZZx you should use the Simpson's13 rule to integrate between the limitsofx=-5*toC.
Write and call a function that uses your function to find:
P(x105|N(100,12.5)) : probability x105 given a normal distribution ofx with =100,0=12.5
P(x>+2|N(100,3))
Print your findings to the
c.li.in the following format:
P(x1.00|N(0,1))=Y.YY
P(x>181.00|N(175,3))=Z.ZZ
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions

Question

What is order of reaction? Explain with example?

Answered: 1 week ago

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What are negative messages? (Objective 1)

Answered: 1 week ago