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 effects of oils on the properties of Polyolefins?

2327


Explain how can I evaluate the thermal relief requirements for double block-in of 98% sulfuric acid?

568


MY generator water cooler inlet line height - 11 mtr inlet water line height - 7 mtr water come into the line from overhead tank, O/H tank height - 20 mtr the first tapping in the inlet line is 2" line which down to 4 mtr level plateform., second tapping in inlet water line goes to a pump 6" line installed at 4 mtr level plateform, pump capacity 200m3/hr, head- 30 mtr, hp-40. the outlet of pump of 6" water line connected to a header of 6 mtr long of 6" line, on this header the six tapping are connected, 4 nos. 3" line goes to 11 mtr height water cooler the pressure of the line is 0.15 to 0.25 kg/cm2, 2" and 4" pipe line connected to a cooler at 4 mtrlevel plateform. my question is, at 11 mtr height level the quantity of water and flow is not sufficient for my cooler, the temp. of cooler is rises much more. you are requested to suggest the modification of pipe line/ pump for take more water flow and pressure (desired pressure is 1 kg/cm2)

1801


On what basis are materials to be crushed evaluated apart from size?

637


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)

1237






Why is post-weld heat treatment sometimes necessary for welded vessels?

2061


Explain how can you keep our seawater used for heat rejection clean before entering our heat exchangers?

560


What type of pump may be appropriate for a liquid near saturation, a low flow rate, and very limited npsha (net positive suction head available)?

607


What are some good estimates for heat transfer coefficients for coils in tanks?

1814


How can viscosity affect the design of a mixer?

646


What is the best way to handle bend or turns in slurry piping systems?

579


What are angle of repose applications in the chemical industry?

590


Is there any way to slow coke formation in ethylene furnaces?

716


Hallow everybody, we want to know in a NPk fertilizer process plant (Bulk Blender) we are in doubt if use square or rectangular hopper jus to avoid the vault effect durin the flow of of raw material like Phosphorus, Potasium and zeolite..Please any advise will be appresated Isdray

3801


What is an additive?

623