

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Angle between a chord and a tangent when angle in the alternate segment is given in C++?
In case of a given circle, chord and tangent is met at a particular point. The angle in the alternate segment is provided. The main job here is to find the angle between the chord and the tangent.
Examples
Input: z = 40 Output: 40 degrees Input: z = 60 Output: 60 degrees
Approach
Let, angle QPR is the given angle in the alternate segment.
Let, the angle between the chord and circle = angle RQY = a
Because line drawn from center on the tangent is perpendicular,
So, angle CQR = 90-a
As, CQ = CR = radius of the circle
So, angle CRQ = 90-a
Now, in triangle CQR,
angle CQR + angle CRQ + angle QCR = 180
angle QCR = 180 - (90-a) - (90-a)
angle QCR = 2a
As angle at the circumference of a circle be the half the angle at the centre subtended by the same arc,so, angle QPR = a
Hence, angle QPR = angle RQY
The approach is implemented in following way −
Example
// 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; }
Output
The angle between tangent and the chord is 40 degrees
- Related Questions & Answers
- Get the Trigonometric tangent of an angle in Python
- Angle Between Hands of a Clock in C++
- Find a time for which angle between hour and minute hands is given theta in C++
- Arc length from given Angle in C++?
- Arc length from given Angle?
- Angle between two Planes in 3D in C++?
- Maximize the given number by replacing a segment of digits with the alternate digits given in C++
- Angle between two Planes in 3D in C Program?
- What are start angle and end angle of arc in HTML5 canvas?
- Program to find angle between hour and minute hands of a clock in C++?
- Check if it is possible to create a polygon with a given angle in Python
- Get the angle whose sine is float value argument in C#
- Program to find the Interior and Exterior Angle of a Regular Polygon in C++
- Step Angle in Stepper Motor
- Find other two sides and angles of a right angle triangle in C++