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 orzabc at 2011-03-14 15:39:46 on Problem 2098
高斯消元后得到椭圆方程 A*x^2+B*y^2+C*x*y+D*x+E*y+F==0

然后直接套公式 S=2*pi*sqrt(4*A*B-C^2)*abs(F*C^2-4*A*B*F-C*D*E+A*E^2+B*D^2)/(4*A*B-C^2)^2 .
     4*A*B-C*C<=0  输出 IMPOSSIBLE
一直WA  请教怎样减少精度误差?

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