GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  OnMobile  >  Placement Papers
Go To First  |  Previous Question  |  
 Placement Papers  |  Question 7 of 7    Print  
create a method MAX(A,B,C) with using only +,-,*,/ and methods square,squareroot,power?

  
Total Answers and Comments: 2 Last Update: August 16, 2008     Asked by: Rahul 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: vimalmd
 
MAX(a,b,c) big=0.5(abs(c-0.5(abs(a-b)+a+b))+.5(abs(a-b)+a+b)+c);

Above answer was rated as good by the following members:
rohgat
April 13, 2007 05:53:08   #1  
Kshama Shanker        

RE: create a method MAX(A,B,C) with using only +,-,*,/...
b+(abs(a-b)+abs(b-c)+(a+b))/2
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
August 16, 2008 08:24:07   #2  
vimalmd Member Since: August 2008   Contribution: 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);
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Hi friends. I gave Onmobile test (19th feb 2005)at Infosys city in Electronics city. The test was allpuzzles as it always is. Here r the six questions. 1) There is a farm which contains super hens which 
View Question | Asked by : Suresh

Latest Answer : MAX(a,b,c) big=0.5(abs(c-0.5(abs(a-b)+a+b))+.5(abs(a-b)+a+b)+c); ...
Read Answers (2) | Asked by : Rahul


 Sponsored Links

 
Related Articles

jQuery - The Power of Plug-ins

Learning jQuery The Power of Plug ins The alternateRowColors function that we wrote is a perfect candidate to become a jQuery plug in In fact any operation that we wish to apply to a set of DOM elements can easily be expressed as a plug in In this case we only need to modify our existing function a
 

What is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

JavaScript Window Object Timeout Methods

JavaScript Window Object Timeout Methods In this JavaScript tutorial you will learn about setTimeout clearTimeout and open methods of window object along with syntax usage and examples for each method mosgoogle center setTimeout The setInterval method of Window object is used to call a function or
 

JavaScript Document Object Methods Part II

JavaScript Document Object Methods Part II In this JavaScript tutorial you will learn about document object methods getElementsByTagName getSelection handleEvent releaseEvents routeEvent write writeln along with syntax examples and brief explanation mosgoogle center getElementsByTagName The the getE
 

JavaScript Document Object Methods Part I

JavaScript Document Object Methods Part I In this JavaScript tutorial you will learn about methods of document object along with syntax and examples This section covers captureEvents open close getElementById getElementsByName methods with explanations for each method mosgoogle center Methods of d
 

JavaScript History Object Properties and Methods

JavaScript History Object  Properties and Methods In this JavaScript tutorial you will learn about history object properties and methods length current next previous properties back forward and go methods along with syntax and examples mosgoogle center The history property has the return v
 

JavaScript Array Object Methods – Part II

JavaScript Array Object Methods Part II In this JavaScript tutorial you will learn about on array object methods slice splice toString shift and unshift methods along with general syntax and examples mosgoogle center slice By using the methods of the array object the programmer is able to retriev
 

JavaScript Array Object Methods – Part I

JavaScript Array Object Methods Part I In this JavaScript tutorial you will learn about Array Object Methods concat join pop push and reverse methods  along with general syntax and examples mosgoogle center concat The concat method is used to join two or more Array objects together to pro
 

JavaScript Window Object Open Method Part 2

JavaScript Window Object Open Method Part 2 In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method scrollbars status titlebar toolbar top width innerHeight innerWidth outerHeight outerWidth and hotkeys mosgoogle center scrollbars S
 

JavaScript Window Object Open Method

JavaScript Window Object Open Method In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method channelmode directories dependent fullscreen screenX screenY height left location menubar resizable alwaysLowered alwaysRaised mosgoogle ce
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape