|
|
back to boardWA test #9 Hi! I keep getting WA in test 9. Here's what I'm doing: 1.- solve for t in y = cos(t) 2.- if the solution is negative, adjust it. 3.- while that t doesn't make x = sin(sqrt(t)), find the next solution. 4.- if (t<10^12) then print solution else print "FAIL". For checking if x = sin(sqt(t)) I use (abs(sin(sqrt(t))-x)>e). Would it be better to solve t for x = sin(sqrt(t)) and then check y = cos(t)? Is it posible to get "FAIL" as an answer? Any sugestions? Thanks!
Edited by author 01.07.2005 00:09 Re: Never it happens "FAIL" Thanks! About my algorithm? Is it wrong or is it just badly implemented? |
|
|