주어진 원의 경우 현과 접선은 특정 지점에서 만난다. 대체 세그먼트의 각도가 제공됩니다. 여기서 주요 작업은 현과 접선 사이의 각도를 찾는 것입니다.
예시
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