Solved

Java Math power function

Posted on 2007-12-06
2
6,471 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 125 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

820 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