Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

请问那个r = lp * lp * 0.25 / sqrt(lp * lp - l * l);中的r是怎么确定的呢?这个式子不太懂。

Posted by miaomiaomiaomiao at 2007-08-25 20:30:30 on Problem 1905
In Reply To:这个是我的迭代 Posted by:frkstyc at 2005-07-06 01:41:22
> 		lp = (1 + n * c) * l;
> 		r = lp * lp * 0.25 / sqrt(lp * lp - l * l);
> 		do
> 		{
> 			double temp = lp / (2 * r);
> 			rp = r;
> 			r += r * (l - 2 * r * sin(temp)) / (l - lp * cos(temp));
> 		}
> 		while(fabs(r - rp) > r * FLT_EPSILON);
> 		printf("%.3lf\n", r - sqrt(r * r - l * l * 0.25));


Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator