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
How can you separate hydrogen peroxide into hydrogen and oxygen?
What are some common problems associated with dilute phase pneumatic conveying?
What is a good source of surfactant information on the internet?
What is the method adopted to minimize shell side pressure drop in a shell?
When using a pumping loop to mix two miscible fluids in a tank, when can the content are considered well mixed?
Explain about different types of lamps?
What is fuel requirement of 20kg/hr of incineration having material calorific value 6500 kcal/kg and diesel calorific value 10707 Kcal/Kg (PCC=850 degC and SCC 1050 Deg c)
What is the average salary for chemical engineers?
How much waterproofing compound in one Sqm Plastering (thick.12mm)
oil field interview question
Hello i am a chemical engineer presently looking for a job i am applying many jobs in naukri and in all job portals but i am not getting any call or interview so kindly some one help me in this regard soundar
What are some common problems associated with dense phase pneumatic conveying?
How can one quickly estimate the additional pressure drop to be introduced with more tube passes?
Where barrel pump use?
What are the some common causes of control valve noise?