• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Math class

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,
A question from Barry Boone's practise exam
What methods does Java define in Math class specially for trigonometric calculations.
(a)cos
(b)asin
(c)tan
(d)sin
(e)angle
The answers are a,b,c,d
The doubt is on choice b.My question is, does java define asin,acos and atan methods for trigonometric calculations.Some books did not specify asin,acos and atan methods for Math class.
Help me.
Thanks
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Javed,
The answer is in Java API documentation which can be downloaded free. Usually Java books do not list all the classes and their methods since this information is published freely on the web. Moreover, books may not be the best place to look for such information.
Checkout our new Certification FAQ. It tells you all the tools you should have accessible to you while you're preparing for the certification, including the API.
By the way, may I remind you that PROPER NAMES ARE NOW REQUIRED!! Please Read the JavaRanch naming policy for more details.
Javaranch appreciates your cooperation to comply with the official naming policy.
Good luck,
Ajith
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Javed,
java define asin,acos and atan . Please refer JAVA API on Math class
solaiappan
 
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Javed,
Yes, Java does define asin, acos and atan methods in its Math class.
When you have a question about one of the Java classes, you will probably get a more complete answer from Sun's online documentation than from any book.
Here is a link to the Math class documentation:
http://java.sun.com/products/jdk/1.2/docs/api/index.html
Hope it helps.
Also, please be sure to register your account with a proper id. It must be of the form "first name, space, last name". "A", unfortunately, does not count as a last name. Here is a page with further information:
http://www.javaranch.com/name.html
It is great to have you participating at the ranch. I would hate to see your account get locked out because of this problem.
Thanks.
Stephanie
 
My, my, aren't you a big fella. Here, have a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic