need help with python hw
Posted: Wed Apr 27, 2022 3:11 pm
need help with python hw
Problem 1 Find the error formula between the exact integral and the Trapezoid integral for the 4th power. Let f(x) = kx4.k is a constant. You will need to find List f(x) dx - "[[(x1)+f(xo) 2 and show the exact error for the 4th order term is: €4 = NK ((x0+x1)-2xox1) 10 You will find sympy to be very helpful in doing the algebra. It won't do everything, you will have to use it wisely. 19]: from sympy import * h, xe, x1, k =symbols('h, xe, x1, k)
Problem 1 Find the error formula between the exact integral and the Trapezoid integral for the 4th power. Let f(x) = kx4.k is a constant. You will need to find List f(x) dx - "[[(x1)+f(xo) 2 and show the exact error for the 4th order term is: €4 = NK ((x0+x1)-2xox1) 10 You will find sympy to be very helpful in doing the algebra. It won't do everything, you will have to use it wisely. 19]: from sympy import * h, xe, x1, k =symbols('h, xe, x1, k)