Question: my code isn't working due to the args 1) Create a Python function to calculate an integral I,, = ] sin mx sinnx dx by
my code isn't working due to the args

1) Create a Python function to calculate an integral I,, = ] sin mx sinnx dx by quadrature. Modify your integration routine from hw8 Q4 to include a tuple of additional arguments: e.g- def quad (func, a, b, N, args= () ) : Write the code for quad () that will call an external function, using dereferencing to pass the items in args as separate arguments; this function should be named sin2 (x, m, n) . Then write a script to call the quadrature function for all values of m, n
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
