| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
A Problem. Wait onlineWrite a program to find the value of x for which integrating the t function from 0 to x gives a result of p. Find the value of x for which integrating the t function from 0 to x gives a result of p. • Start with a trial value for upper limit of 1 and calculate the value of the integration. • Compare it to the desired value. - if the result of the integration is too low, pick a larger trial upper limit - if the result of the integration is too high, pick a smaller trial upper limit Make successive trial integrations until the value of the integration is within an acceptable error, say 0.00001. The rules for adjusting d are these. 1. As long as the tests for the error of the result give the same sign of the error, leave d unchanged. 2. Whenever the sign of the error changes, divide d by 2. Note that this method of adjusting d could result in a trial value of x = 0. To guard against a problem with Simpson’s method, ensure that the program will handle a 0 value of the function being integrated. Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator