【问题标题】:can I find the cosine inverse to find the angle of a triangle我可以找到余弦倒数来找到三角形的角度吗
【发布时间】:2017-08-24 07:49:59
【问题描述】:

我正在尝试使用这个公式找到我已经完成大部分工作的三角形的角度

现在的问题是如何在 PHP 中找到 cos inverse 我有下面的代码来找到 cosine inverse

echo acos(42/90);

它返回一个浮点值,而不是角度。

【问题讨论】:

    标签: php math php-5.6


    【解决方案1】:

    三角函数使用弧度,而不是度数,所以你必须计算

    $AngleInDegrees = rad2deg(acos(42/90))
    or
    $AngleInDegrees = acos(42/90) * 180 / Pi();
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多