Friday, September 2, 2011

Maximum of two values using abs

max(a,b) = (abs(a+b)+abs(a-b))/2;

No comments:

Post a Comment