我用Python。我有像sin(a)=v1和cos(a)=v2这样的公式。在数学中,我会做arcsin(v1)和arccos(v2)来寻找这个方程的解。在Python中,有什么好的方法来解决这种方程吗?有点像solve(v1,v2) -> angle
耽误您时间,实在对不起。
发布于 2018-03-19 08:48:57
atan2(y,x)应该回答你的问题。以下是教义:
>>> help(math.atan2)
Help on built-in function atan2 in module math:
atan2(...)
atan2(y, x)
Return the arc tangent (measured in radians) of y/x.
Unlike atan(y/x), the signs of both x and y are considered.https://stackoverflow.com/questions/49358650
复制相似问题