BeagleBone Black上的数学库



我想在 BeagleBone Black 上计算三角函数,但不知道如何添加适当的库,并且新函数在 javascript中无法识别在此处输入图像描述

使用 Math.atanMath.PI 。并关心括号连接的内容。类似的东西

angle = Math.atan(state/state2) * 180/Math.PI;

甚至

angle = Math.atan2(state,state2) * 180/Math.PI;

最新更新