mirror of https://github.com/Nonannet/copapy.git
atan2 python function fixed
This commit is contained in:
parent
6d5c349629
commit
5b77ce236f
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue