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 what are the assumptions made on conservation equation?
Explain what are the criteria involved in choosing mass balances for components?
What is a good device to use for obtaining viscosity data for a non-newtonian fluid?
What is % of piping & equipment cost for a chemical plant having batch process?
i have done B.TECH in che.tech.and doing MBA . why you doing mba why u have not join any job.
Name some common problems associated with dilute phase pneumatic conveying?
How can you control the ph level in our cooling water with respect to ammonia contamination?
What are the factors involved in considering the choice of dry screw compressor?
Explain about different types of lamps?
Explain how are vessel lined with glass or how are they coated?
What is the easiest way to extract hydrogen from water and the safest way to store it?
How i can calculate heat transfer in reactor at unsteady state and what data should i have? I want equation and process to calculate it? As there is steam or brine in jacket
Explain the different characteristics that can affect the flow of bulk solids and how?
marketing procedure of iocl
Explain some of the consequences of an undersized kettle type reboiler?