• Hyperbolic trigonemtric functions. Write a program Hyperbolic.java to compute various hyperbolic trigonemtric and related functions on real numbers.

    To do so, organize your program according to the following public API:

    public class Hyperbolic {
    
        // Returns the hyperbolic sine of x.
        public static double sinh(double x)
    
        // Returns the hyperbolic cosine of x.
        public static double cosh(double x)
    
        // Returns the hyperbolic tangent of x.
        public static double tanh(double x)
    
        // Returns the inverse hyperbolic sine of x.
        public static double arsinh(double x)
    
        // Returns the inverse hyperbolic cosine of x.
        public static double arcosh(double x)
    
        // Returns the inverse hyperbolic tangent of x.
        public static double artanh(double x)
    
        // Returns the standard logistic function of x.
        public static double logistic(double x)
    
        // Takes a double command-line argument n and prints totient(n).
        public static void main(String[] args)
    }
    

    Your implementations should be one-liners, perhaps with extra code to handle corner cases.

    Hyperbolic functions occur in the solutions of Laplace’s equation, which arise in many areas of physics, including electromagnetic theory, heat transfer, fluid dynamics, and special relativity. Logistic and hyperbolic tangent functions are widely used as activation functions in neural networks.