subject

Python problemMake a function defined as: def GaussIntegration(fcn, a, b, n=4): Purpose: use the Gauss Integration method to estimate the integral of fcn(x), between the limits of a and b.
fcn: the function we want to integrate
a and b: the lower and upper limits of integration
n: The number of integration points used. The only acceptable values are 2, 3 and 4. If a value other that 2, 3 or 4 is passed, use n = 4.
return value: the estimate of the integral
Write and call a main() function that uses your GaussIntegration function to estimate and print the integral of:
x - 3 * cos(x) , with a = 1, b = 3 and n = 4
x - 3 * cos(x) , with a = 1, b = 3 and n = 5
cos(2x)*x3, with a = 2, b = 3 and n = 2

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:50
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 23.06.2019 21:30
To move a file or folder in microsoft windows, you can click and hold down the left mouse button while moving your mouse pointer to the location you want the file or folder to be, which is also known as.
Answers: 3
You know the right answer?
Python problemMake a function defined as: def GaussIntegration(fcn, a, b, n=4): Purpose: use the Ga...
Questions
question
Mathematics, 05.02.2020 10:46
Questions on the website: 13722361