Getting sine and hyperbolic sine in Julia – sin(), sinh() and sind() Methods
The sin() is an inbuilt function in julia which is used to calculate sine of the specified radian values.
Syntax: sin(x)
Parameters:
- x: Specified radian values.
Returns: It returns the calculated sine of the specified radian values.
Example:
# Julia program to illustrate # the use of sin() method # Getting sine of the specified# radian values.println(sin(0))println(sin(30))println(sin(90))println(sin(44)) |
Output:
0.0 -0.9880316240928618 0.8939966636005579 0.017701925105413577
The sinh() is an inbuilt function in julia which is used to calculate hyperbolic sine of the specified values.
Syntax: sinh(x)
Parameters:
- x: Specified values.
Returns: It returns the calculated hyperbolic sine of the specified values.
Example:
# Julia program to illustrate # the use of sinh() method # Getting sine of the specified values.println(sinh(0))println(sinh(30))println(sinh(90))println(sinh(45)) |
Output:
0.0 5.343237290762231e12 6.102016471589204e38 1.7467135528742547e19
The sind() is an inbuilt function in julia which is used to calculate sine of the specified value in degrees.
Syntax: sind(x)
Parameters:
- x: Specified value in degrees.
Returns: It returns the calculated sine of the specified value in degrees.
Example:
# Julia program to illustrate # the use of sind() method # Getting sine of the specified value # in degreeprintln(sind(0))println(sind(30))println(sind(90))println(sind(45)) |
Output:
0.0 0.5 1.0 0.7071067811865476



Please Login to comment...