Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python You will test your functions and using the particular numerical values and functions given. When we grade your assignment, we will run your

Use Python

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

You will test your functions and using the particular numerical values and functions given. When we grade your assignment, we will run your program with those given numerical values, looking for correct answers. Then we will change the numerical values (including changing the SIZES of the arrays) and look for correct answers for those modified values as well. We will only use numerical values, array sizes and functions that make sense. We will not be testing your program to see how it handles bad data. In this assignment, you must use variables, loops, if statements, your own function definitions and function calls to write the required 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 reasonable comments in your code. See your MAE 3013 textbook and the MAE 3013 Equation Sheet for a reminder of: The Secant Method for finding the solution (root or zero) or a nonlinear equation The Simpson's 1/3 rule for numerical integration The Gauss-Jordan elimination method for finding an inverse matrix. a) Write a function defined as: def Probability (PDF, args, C, GT=True) : 1 PDE: is the Gaussianormal probability density function f(x) = which takes 1 2 argument containing values for x, u (population mean), and o (population standard deviation). args: is a tuple containing u and o c: is a floating point value GT: is a boolean indicating if we want the probability of x being greater than =True) or less than (GT=False) To find the probability of x181.00N(175,3)=Z.ZZ b) Write a function defined as: def Secant (fcn, x0, xl, maxiter=10, xtol=le-5): Purpose: use the Secant Method to find the root of fen(x), in the neighborhood of x0 and xl. fcn: the function for which we want to find the root XO and 181.00N(175,3)=Z.ZZ b) Write a function defined as: def Secant (fcn, x0, xl, maxiter=10, xtol=le-5): Purpose: use the Secant Method to find the root of fen(x), in the neighborhood of x0 and xl. fcn: the function for which we want to find the root XO and

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

Big Data 29th British National Conference On Databases Bncod 2013 Oxford Uk July 2013 Proceedings Lncs 7968

Authors: Dan Olteanu ,Georg Gottlob ,Christian Schallhart

2013th Edition

3642394663, 978-3642394669

More Books

Students also viewed these Databases questions