Given 2 sides of a right triangle,calculate:
The hypotenuse of the triangle.
Each of the angles of the triangle
The area of the triangle
You must:
Reference the math library.
Declare the necessary symbolic constants (hint:PI,but there may be more).
Format floating point output.
人气:453 ℃ 时间:2020-01-01 10:48:16
解答
给了俩直角三角形的直角边,设为a,b,要你计算:
三角形的斜边c=根号(a^2+b^2)--------勾股定理
三角形每个的角度,90度的直角边就不用说了,a边对的角θ可以得出三角函数tanθ=a/b,通过查表可得到θ的角度,b边对的角即180-90-θ
三角形的面积S=a*b/2 面积公式,不再赘述
推荐
- Given in the△ABC,a,b,c are three sides of the triangle,and 3a=2b+1c,then∠A is( ) (英汉
- Find the area of a triangle with sides of 66.9 and 78.9 centimeters,and the included angle of 37.9
- A triangle has three sides.对three划线提问
- Find sin A,sec B for a right triangle if a = 1,c = 2.
- “The sum of the measures in degrees of the angles of a triangle is 180.
- 一椭圆与一双曲线有共同焦点,他们的离心砺之和为二分之五,若椭圆的方程为16分之X平方加12分之Y平方等...
- 求计算弱酸弱碱PH的公式
- 求许地山的《落花生》原文!
猜你喜欢