Languages
[Edit]
EN

Java - Math.atan() method example

0 points
Created by:
Brett4
465

The Math.atan function returns number in radians in the range -Math.PI/2 to +Math.PI/2. The function calculates the inverted tangent function value.


1. Documentation

Edit
Syntax

Note: Classes in the java.lang package are imported automatically, so it is not necessary to do it manually - we use just Math.atan() call.

Parameters

number - double number value that represents the result of the operation opposite / adjacent on the right triangle (primitive value).

Result

number value in radians in the range -Math.PI/2 to +Math.PI/2 (primitive value).

If value can not be calculated NaN is returned.

Description

atan is a static method that takes only one parameter and returns an approximation of the result of the mathematical function arctangent(x).

2. Working with degrees

Edit

References

Edit
  1. Inverse trigonometric functions - Wikipedia

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Cross technology - Math.atan()

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join