Answered step by step
Verified Expert Solution
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
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 andStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started