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