Run ❯
Get your
own Java
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
public class Main { public static void main(String[] args) { System.out.println(Math.tan(0.5)); System.out.println(Math.tan(-0.5)); System.out.println(Math.tan(1)); System.out.println(Math.tan(-3)); System.out.println(Math.tan(Math.PI/4)); } }
0.5463024898437905
-0.5463024898437905
1.5574077246549023
0.1425465430742778
0.9999999999999999