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

用对弧微分积分求弧长 最后为啥结果偏高啊

Posted by a447600334 at 2017-07-20 09:47:25 on Problem 1905
			c = (l + r) / 2;
			al = (-4 * c) / L;
			a = (-4 * c) / (L * L);
			lo = logl(al + sqrtl((double)(1 + al*al)));
			L2 = (al*sqrtl((double)(1 + al*al)) + lo) / (2 * a);
			L1 = (1 + n*C)*L;
			if (judge(L2, L1))	r = c;
			else l = c,ans=c;

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