GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  OnMobile  >  Placement Papers

 Print  |  
Question:  create a method MAX(A,B,C) with using only +,-,*,/ and methods square,squareroot,power?



August 08, 2008 08:24:07 #2
 vimalmd   Member Since: August 2008    Total Comments: 1 

RE: create a method MAX(A,B,C) with using only +,-,*,/ and methods square,squareroot,power?
 
MAX(a,b,c) big=0.5(abs(c-0.5(abs(a-b)+a+b))+.5(abs(a-b)+a+b)+c);
     

 

Back To Question