How to compute the hyperbolic sine (Sinh) in C#

1 Answer

0 votes
using System;

class Program
{
    static void Main() {
        Double result = Math.Sinh(1);
        System.Console.WriteLine("Sinh(1) = " + result);

        result = Math.Sinh(0);
        System.Console.WriteLine("Sinh(0) = " + result);
        
        result = Math.Sinh(90);
        System.Console.WriteLine("Sinh(90) = " + result);

        result = Math.Sinh(Double.PositiveInfinity);
        System.Console.WriteLine("Sinh(∞) = " + result);
    }
}




/*
run:

Sinh(1) = 1.1752011936438
Sinh(0) = 0
Sinh(90) = 6.1020164715892E+38
Sinh(∞) = Infinity

*/

 



answered Aug 7, 2022 by avibootz

Related questions

1 answer 116 views
3 answers 151 views
151 views asked Jan 25, 2023 by avibootz
1 answer 114 views
...