当用C ++给出替换段中的角度时,弦和切线之间的角度?
如果是给定的圆,则在特定点处会遇到和弦和切线。提供了备用段中的角度。这里的主要工作是找到弦和切线之间的角度。
例子
Input: z = 40 Output: 40 degrees Input: z = 60 Output: 60 degrees
方法
令角度QPR是交替段中的给定角度。
令,弦与圆之间的角度=角度RQY=a
因为从切线上的中心画的线是垂直的,
因此,角度CQR=90-a
As,CQ=CR=圆半径
因此,角度CRQ=90-a
现在,在三角形CQR中
角CQR+角CRQ+角QCR=180
角度QCR=180-(90-a)-(90-a)
角度QCR=2a
由于圆的圆周上的角度是由同一弧线对向的中心的角度的一半,所以角度QPR=a
因此,角度QPR=角度RQY
该方法以以下方式实现-
示例
// C++ program to find the angle
// between a chord and a tangent
// at the time when angle in the alternate segment is given
#include <bits/stdc++.h>
using namespace std;
void anglechordtang(int z1){
cout<< "The angle between tangent"
<<" and the chord is "
<< z1 <<" degrees" << endl;
}
// Driver code
int main(){
int z1 = 40;
anglechordtang(z1);
return 0;
}输出结果
The angle between tangent and the chord is 40 degrees
热门推荐
10 祝孙辈生日祝福语简短
11 恋人跨年祝福语大全简短
12 考大学敬酒简短祝福语
13 开工投产大吉祝福语 简短
14 偶然结婚祝福语朋友简短
15 感谢学长学姐祝福语简短
16 戏精的祝福语简短
17 我要结婚祝福语简短
18 婚前女儿生日祝福语简短