cospi()
is an inbuilt function in julia which is used to compute the value of Syntax: cospi(x) Parameters:Example:Returns: It returns the value of
- x: Specified large value.
which is more accurately than .
# Julia program to illustrate # the use of cospi() method # Getting the value of cos(pi x) println(cospi( 55 ))
println(cospi( 22.7 ))
println(cospi( 3.17 ))
println(cospi( 22 / 7 ))
|
-1.0 -0.5877852522924714 -0.8607420270039438 -0.9009688679024193
cosc()
Thecosc()
is an inbuilt function in julia which is used to compute the value of Syntax: cosc(x) Parameters:Example:Returns: It returns the value of
- x: Specified value.
.
# Julia program to illustrate # the use of cosc() method # Getting the value of cos(pi x)/x-sin(pi x)/(pi x ^ 2) println(cosc( 0 ))
println(cosc( 1 ))
println(cosc( 3.14 ))
println(cosc( 22 / 7 ))
|
0.0 -1.0 -0.27441551248588253 -0.2726897540491998
Article Tags :
Recommended Articles