Online Java Compiler By
JavaTpoint.com
public class TanhExample4 { public static void main(String[] args) { double a = 0.0/0; // Input NaN, Output NaN System.out.println(Math.tanh(a)); } }
Output