Question: Consider the following change in integration limits . x = a b f ( x ) d x = t = - 1 1 g

Consider the following change in integration limits.
x=abf(x)dx=t=-11g(t)dt
where a=-4,b=5, and f(x)=x6+2(-x)3+12.2.
a) Make use of the necessary lines below to construct a python code that will define the function g(t).
b)
Assuming, that you have defined the function, g(t), make use of the necessary lines below to construct a program to obtain the integral value by using a three point Gauss-Quadrature rule.
a,b=-4,5
return x*****6+2+(-x)****3+12*2
for i in range ( len(c)):
x=b-a2***t+a+b2
return b-a2**f(t)
defg(t,a,b) :
deff(x) :
print (I)
I=I+c[i]**g(x[i],a,b)
c,x=[59,89,59],[0.7740,0,-0.7746]
I=0
 Consider the following change in integration limits. x=abf(x)dx=t=-11g(t)dt where a=-4,b=5, and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!