Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java Math power function

Posted on 2007-12-06
2
Medium Priority
?
6,500 Views
Last Modified: 2013-11-23
Hey guys,

Quick question:

Is there a way to easily perform math operations in Java? That is, some library or package that will let one do cosine, sine, exponentials, etc.

Thanks!
0
Comment
Question by:Koraxen
2 Comments
 
LVL 20

Accepted Solution

by:
gatorvip earned 500 total points
ID: 20421671
0
 
LVL 1

Expert Comment

by:kunalthakur
ID: 21384403
java.lang.math package has function to find sin,cos,absolute value etc etc...

eg. its signature is static double cos(double)

it take in double value as an arguement and returns the cos of angle.  
Note : it takes the angle in radians as input.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question