klyn.math.Math.atan2
method
public static atan2<LEFT_TYPE extends AbstractNumber, RIGHT_TYPE extends AbstractNumber>(y as NDArray<LEFT_TYPE>, x as NDArray<RIGHT_TYPE>) as NDArray<Double>:
Description
Returns the element-wise `atan2(y, x)` for two arrays. This overload delegates to the native vectorized NDArray kernel.
import klyn.math

y = NDArray<Double>.fromList([1.0, 1.0])
x = NDArray<Double>.fromList([1.0, -1.0])
print(Math.atan2(y, x))