Home >>VB.Net Programs >VB.Net program to find the hyperbolic sine

VB.Net program to find the hyperbolic sine

Write a VB.Net program to find the hyperbolic sine

Here, the hyperbolic sine of the angle specified the result is printed on the console screen.

Program :

Below is the source code for finding the hyperbolic sine from the defined angle. The program given is compiled and successfully executed.

Example


Module Module1

    Sub Main()
        Dim hyperSine As Double = 0

        hyperSine = Math.Sinh(2)
        Console.WriteLine("Hyperbolic Sine is: {0}", hyperSine)

        hyperSine = Math.Sinh(0.3584)
        Console.WriteLine("Hyperbolic Sine is: {0}", hyperSine)

        hyperSine = Math.Sinh(0.0)
        Console.WriteLine("Hyperbolic Sine is: {0}", hyperSine)
    End Sub
    
End Module
	
Output:
Hyperbolic Sine is: 3.62686040784702
Hyperbolic Sine is: 0.366122209742843
Hyperbolic Sine is: 0

Explanation:

We created a Module1 module in the program above that contains the Main() method. We created a hyperSine variable initialized with 0. in the Main() method.

hyperSine = Math.Sinh(2)
Console.WriteLine("Hyperbolic Sine is: {0}", hyperSine)

hyperSine = Math.Sinh(0.3584)
Console.WriteLine("Hyperbolic Sine is: {0}", hyperSine)

hyperSine = Math.Sinh(0.0)
Console.WriteLine("Hyperbolic Sine is: {0}", hyperSine)

The hyperbolic sine of the defined angle values is found in the above code and then printed on the console screen.


No Sidebar ads