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:
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:
Returns: It returns the calculated hyperbolic sine of the specified values.
Example:
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:
println(sind( 0 ))
println(sind( 30 ))
println(sind( 90 ))
println(sind( 45 ))
|
Output:
0.0
0.5
1.0
0.7071067811865476
Last Updated :
26 Mar, 2020
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...