BeagleBone Black上的数学库

时间:2017-02-02 20:10:01

标签: math beagleboneblack

我想在BeagleBone Black上计算三角函数,但不知道如何添加适当的库并且javascript中无法识别新函数<{3}}

1 个答案:

答案 0 :(得分:0)

使用Math.atanMath.PI。并关心括号连接的内容。像

这样的东西
angle = Math.atan(state/state2) * 180/Math.PI;

甚至

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