subject
Engineering, 04.04.2020 03:02 nayellisoto15

Vectorize the midpoint rule for integration The midpoint rule for approximating an integral can be expressed as ∫badxf(x)≈h∑i=1nf(a−12h+ih), where h=b−an. Write a function midpointint( f, a,b, n ) to compute the midpoint rule using the numpy sum function. Please be careful in generating i, which should range from 1 to n inclusive. (You could, for instance, use a range and convert it to an array.) Your submission should include a function midpointint( f, a,b, n ).

ansver
Answers: 2

Another question on Engineering

question
Engineering, 04.07.2019 18:10
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
question
Engineering, 04.07.2019 18:10
Aloaded platform of total mass 500 kg is supported by a dashpot and by a set of springs of effective stiffness 72 kn/m. it is observed that when the platform is depressed through a distance x = 12.5 cm below its equilibrium position and then released without any initial velocity; it reaches its equilibrium position in the shortest possible time without overshoot. find the position and velocity of the loaded platform 0.10 sec. after its release. if a further load of 400 kg is added to the platform, find, i) the frequency of damped vibrations, and i) the amplitude of vibration after 2 complete oscillations, given that the initial amplitude is 15 cm.
Answers: 1
question
Engineering, 04.07.2019 18:10
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:20
Have a greater impact on maintenance productivity than any other support group. (clo5) a)-the top management b)-inventory and purchasing c)-sub-contracting d)-cmms
Answers: 2
You know the right answer?
Vectorize the midpoint rule for integration The midpoint rule for approximating an integral can be e...
Questions
Questions on the website: 13722360