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
dear sir/madam, I had applied for the post of officer trainee so plz if u have any papers both technical or aptitude plz inform me on sonalichavan01@gmail.com
We have some pieces of metals that have been 'powder coated', how does that work?
could any one plzz give me the placement tech papers taken by iocl,and bpcl in chemical stream..... my id is.... mishra.gaurang@gmail.com
What is higher heating value and lower heating value? Is it positive or negative?
In Pressure Sfety Valve(PSV) 2" by pass line why given for process units.
How can one estimate how the friction factor changes in heat exchanger tubes with a change in temperature?
What is the largest application for surfactants?
Explain how do you design a vapor-liquid separator or a flash drum?
Explain the working of a spray condenser?
which accomplishments in your present position are you proud of and why?
Explain the reasons of removal of particles from effluent gas?
what is the difference between car seal close/open valves and lock close/open valves?
How can I treat a waste stream containing both hexavalent chromium and arsenic?
Explain the steps taken to operate a tank-blanketing valve?
What is a common failure mechanism for above ground atmospheric storage tanks?