answersLogoWhite

0

Math is a pre-defined class in the package java.lang. It contain various predefined functions in it that help the users to carry out various mathematical operations in their programs.

Various Math Functions are::

Math.pow(x,y) => x^y

Math.sqrt(x) => Square root of 'x'

Math.tan(x),sin(x),cos(x) => tan, sin, cos of 'x' respectively

there are also other functions like Math.ceil,Math.floor,Math.mod,etc.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
More answers

In Java, there are no functions. They call it method and you can define it within a class.

User Avatar

Wiki User

14y ago
User Avatar

A function created by the user. In Java, functions are attached to a class, and are called "methods".

User Avatar

Wiki User

12y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What are math functions in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp