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


Please Help Members By Posting Answers For Below Questions

What are the assumptions made for kynch theory?

638


How to caliculate the boil up rate, dia and height in both packed and tray distillation columns and any referance books for the design.

7962


hi can anyone tell me some technical questions asked in iocl

1748


Mention some of the specialized grinding methods?

538


How does a cyclone separator work?

644






how can i prepare for gate chemical in kolkata

1731


What is a good method of steam tracing large vessels?

694


how will we calculate the heat of formation through electron...??

1647


Explain the some guidelines for sizing a psv for a fire scenario on a vessel in a refinery service?

601


What is the basic difference between dispersion & distribution in any polymer blend or alloy??

1505


Explain the steps required to design a vapor-liquid separator or flash drum?

557


How does a tank-blanketing valve operate?

707


What are the assumptions made on conservation equation?

565


Explain how does a tank-blanketing valve operate?

633


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.

554