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, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 18:10
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
You know the right answer?
Vectorize the midpoint rule for integration The midpoint rule for approximating an integral can be e...
Questions
question
Social Studies, 30.10.2020 23:00
question
Mathematics, 30.10.2020 23:00
question
Social Studies, 30.10.2020 23:00
Questions on the website: 13722359