answersLogoWhite

0

I assume you want the trigonometric functions. You can use the functions in the Math class. For example, if the variable "x" contains an angle, you can use Math.sin(x), Math.cos(x), etc., and if you want the angle from a sine stored in "y", Math.asin(y), etc.

Note that, as in most programming languages, angles must be specified in radians. The Math class also contains functions to convert from degrees to radians, and from radians to degrees.

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Math & Arithmetic

What is the difference between advanced java J2EE?

J2EE stands for Java 2 Enterprise Edition. It is used to create enterprise class web applications that can be used by large enterprises and corporations. Most websites of major companies are created using j2ee. Some of the technologies used in J2ee are: a. Struts b. Hibernate c. JSP d. Servlets e. Spring f. etc Whereas Advanced Java refers to the advanced topics of java that can be used in regular java programs. Some topics under Advanced Java are: a. Exception Handling b. Threading/Multi-Threading c. Remote Method Invocation d. Serialization e. etc


What is the Java integer class used for?

The Java Integer class is there to help with math. It is very useful and very recommended. To learn more information about it, go to the official Java page.


How do you declare symbolic constant?

In programming, a symbolic constant is typically declared using the const keyword in languages like C, C++, or Java, or with final in Java. For example, in C++, you might write const int MAX_SIZE = 100;, indicating that MAX_SIZE is a constant integer with a value of 100 that cannot be changed. In Python, you can simply define a variable in uppercase, like MAX_SIZE = 100, by convention to signify that it should be treated as a constant, though it is not enforced by the language.


How to write a java program that determines the number of prime numbers less than N which is given by the user?

where to start? do you have an algorithm and just want to implement it in java? depends on how big N is, as that will determine which method is most efficient


Why java does not support unsigned integers?

Java does not support unsigned integers primarily to maintain simplicity and consistency in its type system. The language designers aimed to provide a clear and straightforward model for numeric types, and including unsigned integers would complicate the arithmetic and bitwise operations. Additionally, Java's focus on portability and cross-platform compatibility means that avoiding unsigned types helps prevent issues related to integer overflow and underflow across different systems. As a result, Java provides a signed integer representation, which is sufficient for most programming needs.

Related Questions

How do you control PowerPoint slides using java?

You can control Powerpoint Slides using Java with Aspose.Slides for Java Library: - http://www.aspose.com/java/powerpoint-component.aspx


What are the technologies without using java?

you can use type writer to avoid using java :)


What are java applications?

Applications that are built using the Java language are termed as Java applications.


What is the areas of application of java?

Applications that are built using the Java language are termed as Java applications.


Has anyone developed web services using java?

of course, there are services developed using java technology


How do you execute a Java program?

You can run a Java application from the command line using "java <name of the class>"


Is it possible to draw in java without using applet?

Yes it is possible to draw in java by using AWT package. or by using javax package.


How do you calculate ascii value in java?

char a = 'A'; System.out.println((int)a);


What has the author Joe Weber written?

Joe Weber has written: 'Using Java 1.2' -- subject(s): Java (Computer program language) 'Using Java 1.1' -- subject(s): Java (Computer program language)


Is spring framework in java?

Yes, Spring is a framework built using the Java Technology.


Can you provide a solution to the diamond-square algorithm using Java and recursion?

Yes. It is possible to provide a solution to the diamond-square algorithm using Java and recursion.


Does java script coding mean using it for Java programs only?

Java script coding is computer coding, many things require Java, and you need to have Java enabled to view these types of programs.