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
What are the assumptions made for kynch theory?
How to caliculate the boil up rate, dia and height in both packed and tray distillation columns and any referance books for the design.
hi can anyone tell me some technical questions asked in iocl
Mention some of the specialized grinding methods?
How does a cyclone separator work?
how can i prepare for gate chemical in kolkata
What is a good method of steam tracing large vessels?
how will we calculate the heat of formation through electron...??
Explain the some guidelines for sizing a psv for a fire scenario on a vessel in a refinery service?
What is the basic difference between dispersion & distribution in any polymer blend or alloy??
Explain the steps required to design a vapor-liquid separator or flash drum?
How does a tank-blanketing valve operate?
What are the assumptions made on conservation equation?
Explain how does a tank-blanketing valve operate?
I would like to know how to size a partial combustion reactor processing methane and oxygen, as a function of the flowrate and of the pressure.