klyn.math.Math.cos
method
public static cos<NUMBER_TYPE extends AbstractNumber>(values as NDArray<NUMBER_TYPE>) as NDArray<Double>:
Description
Returns the element-wise cosine of an array expressed in radians. This overload delegates to the native vectorized NDArray kernel.
import klyn.math

angles = NDArray<Double>.fromList([0.0, Math.PI])
print(Math.cos(angles))