Math.atan()
Math.atan() returns the arc cosine value.
Syntax
Math.atan(input)
Note that all outputs are in the range -Math.PI/2 and +Math.PI/2.
Here are some examples.
System.out.println(Math.atan(3)); //1.2490457723982544
System.out.println(Math.atan(1.01)); //0.7903732467283024
System.out.println(Math.atan(1)); // 0.7853981633974483
System.out.println(Math.atan(-1)); //-0.7853981633974483
System.out.println(Math.atan(0)); //0.0
System.out.println(Math.PI/2); //1.5707963267948966
« All Math functions
« Java
This article is written by plus2net.com team.
plus2net.com