atan2 python function fixed

This commit is contained in:
Nicolas 2025-11-12 21:34:53 +01:00 committed by Nicolas Kruse
parent 6d5c349629
commit 5b77ce236f
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ def atan2(x: NumLike, y: NumLike) -> variable[float] | float:
Result in radian Result in radian
""" """
if isinstance(x, variable) or isinstance(y, variable): if isinstance(x, variable) or isinstance(y, variable):
return add_op('atan', [x, x]) # TODO: fix 2. dummy argument return add_op('atan2', [x, y]) # TODO: fix 2. dummy argument
return math.atan2(x, y) return math.atan2(x, y)