Different uses of sine function in Julia – sinpi() and sinc() Method
Last Updated :
21 Apr, 2020
The
sinpi()
is an inbuilt function in
julia which is used to compute the value of
which is more accurately than
, where x is the large value.
Syntax: sinpi(x)
Parameters:
- x: Specified large value.
Returns: It returns the value of which is more accurately than .
Example:
println(sinpi( 55 ))
println(sinpi( 22.7 ))
println(sinpi( 3.17 ))
println(sinpi( 22 / 7 ))
|
Output:
0.0
0.8090169943749488
-0.5090414157503711
-0.43388373911755795
sinc()
The
sinc()
is an inbuilt function in
julia which is used to compute the value of
.
Syntax: sinc(x)
Parameters:
Returns: It returns the value of .
Example:
println(sinc( 0 ))
println(sinc( 1 ))
println(sinc( 3.14 ))
println(sinc( 22 / 7 ))
|
Output:
1
0
-0.043162343260348214
-0.04394392660493417
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...