>
> As you can see, the "relative" part is basically abs(x-y)/max(x,y) <=
> epsilon.  The previous two clauses are for absolute differences and to make
> sure we don't get huge numbers when we divide by x and y.
>

Sorry, that formulation is wrong and Luke's is right: |x-y|/max(|x|,|y|) <=
epsilon.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to