简体   繁体   English

我可以找到余弦逆来找到三角形的角度吗

[英]can I find the cosine inverse to find the angle of a triangle

I am trying to find the angle of a triangle I have complete most of the work using this formula 我试图找到一个三角形的角度,我已经使用此公式完成了大部分工作

在此处输入图片说明 now Problem is that how to find cos inverse in PHP I have the code below to find the cosine inverse 现在的问题是,如何在PHP中找到cos逆,我有下面的代码来找到余弦逆

echo acos(42/90);

it returns a float value, not angle. 它返回一个浮点值,而不是角度。

Trigonometric functions work with radians, not degrees, so you have to calculate 三角函数使用弧度而不是度数,因此您必须计算

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM