Two Laptop Bag
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Math class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Math class" Watch "Math class" New topic
Author

Math class

Javed A
Greenhorn

Joined: Nov 02, 2000
Posts: 1
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
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5781
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

Open Group Certified Master IT Architect.
Sun Certified Architect(SCEA).
P SOLAIAPPAN
Ranch Hand

Joined: Oct 20, 2000
Posts: 68
Dear Javed,
java define asin,acos and atan . Please refer JAVA API on Math class
solaiappan
Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
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
 
 
subject: Math class
 
Threads others viewed
Trigonometric methods
java.lang.Math
MindQ q.no.37,42,45
Urgent Help needed immediate
Math - sincostan
developer file tools