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 JiaJunpeng at 2012-07-03 19:51:15 on Problem 3577
a*sin(theta)+b*cos(theta)==c

==>  sqrt(a*a+b*b)*sin(theta+alpha)==c

alpha==atan2(b,a)这样就可以解出 theta了 

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