How to Use Math.tan() in Java


In this example we will show you how to use Math.tan() in Java.

Source Code

package com.beginner.examples;

public class Tan {
  public static void main(String[] args){
    System.out.println(Math.tan(20)); // use Math.tan()
  }
}

Output:

2.237160944224742
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments