mirror of https://github.com/Nonannet/copapy.git
atan2 python function fixed
This commit is contained in:
parent
072e9947a8
commit
443d1d19d3
|
|
@ -174,7 +174,7 @@ def atan2(x: NumLike, y: NumLike) -> variable[float] | float:
|
|||
Result in radian
|
||||
"""
|
||||
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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue