Question: DO ONLY PART A Consider the function f(x) = e-x. The value of f0f(x) dx can be found using error function tables such that erf(2)-

DO ONLY PART A
Consider the function f(x) = e-x. The value of f0f(x) dx can be found using error function tables such that erf(2)- e-r' dr. Write a Python program that: Asks the user for z value (negative numbers are not allowed to be entered by the user) and the number of panels to be used for numerical integration of the function Uses the instructor providedx fx_gen.py module to generate x and f(x) values in an array, calculates the numerical integral using Simpson's rule implementation in Scipy module, calculates the error function value using Python in-built function and prints the percentage error between those two calculations. a. b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
