cospi()
是 julia 中的一个内置函数,用于计算这比 ,其中 x 是较大的值。
Syntax: cospi(x)
Parameters:
- x: Specified large value.
Returns: It returns the value of 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()
cosc()
是 julia 中的一个内置函数,用于计算这是 sinc(x) 的导数。
Syntax: cosc(x)
Parameters:
- x: Specified value.
Returns: It returns the value of .
例子:
# 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