COMPUTER PROGRAMMING FOR ENGINEERS - EXAMPLE 17.1 : By using Excel or other easiest programming package, explain how I, the integral of sin x dx from 0 to 3.142 could be approximated using random number. Find the exact value of I.
Answer Posted / kangchuentat
COMPUTER PROGRAMMING FOR ENGINEERS - ANSWER 17.1 : When Excel is used, let column A=RAND() and column B=ASIN(A1). Stretch the columns A and B vertically. The data is transferred to Word, then reinserted into column C and D in order to prevent changes in column A. By using the sort function from the lowest to highest, arrange the data in column C and D, followed by trapezoidal rule performance in column E=0.5*(C1+C2)*(D2-D1). The 2 times summation of values in column E will approximate I gradually as the random numbers used increase. Exact value of I = -2(-1) = 2 units. The answer is given by Kang Chuen Tat; PO Box 6263, Dandenong, Victoria VIC 3175, Australia; SMS +61405421706; chuentat@hotmail.com; http://kangchuentat.wordpress.com.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain the different types of equipments for the conveyance of solids?
Are there any special considerations to be taken into account for combusting ammonia?
Explain what type of pump may be appropriate for a liquid near saturation, a low flow rate, and very limited npsha (net positive suction head available)?
Which type of pneumatic control valve is used mostly Either Air to Open r Air to close the value And guys I need reason for your reason
Explain how can you estimate a gas flow based on two pressure measurements?
how much maximum power can be generated by 320v, 10kg-cm synchronus motor if shaft is roteted mechanically at 50 to 60 rpm?
What is a cstr and what are its basic assumptions?
is extractive distillationӞH
how will we calculate the heat of formation through electron...??
Is it ever advantageous to use shells in series even though it may not be necessary?
i am going to appear vedanta written test so plz can any body suggest me for this on madhu.5393@gmail.com
Explain how can you estimate the efficiency of a pump?
I am a student of class 12. With PCMB group. But I Am not good at math. So I wanted to ask whether Chemical engineering can be a good option for me.???
What step should be taken in process industries if the process variable is oscillating?
How can hexavalent chromium be removed from aqueous waste streams?