📌  相关文章
📜  当给出相同长度的另一个和弦所成的角度时,该和弦所成的角度

📅  最后修改于: 2021-05-04 15:48:26             🧑  作者: Mango

给定一个圆,它的两个和弦长度相等。给出了其中一个弦与中心所成的角度。此处的任务是找到在中心的另一个和弦所对向的角度的量度。
例子:

Input: 48
Output: 48 degrees


Input: 82
Output: 82 degrees

方法
ACBD为以O为中心的圆的两个相等的弦,令该弦AC所夹的角度为x度。
现在,
在三角形AOCBOD中
AO = OB (同一圆的半径)
AB = CD (相等的和弦)
OC = OD (同一圆的半径)
因此,三角形AOCBOD彼此相等
因此,角度AOC =角度BOD

下面是上述方法的实现:

C++
// C++ program to find the angle
// subtended at the center by the chord
// when the angle subtended at center
// by another chord of equal length is given
 
#include 
using namespace std;
 
void angleequichord(int z)
{
    cout << "The angle subtended at the center is "
         << z << " degrees" << endl;
}
 
// Driver code
int main()
{
    int z = 48;
    angleequichord(z);
    return 0;
}


Java
// Java program to find the angle
// subtended at the center by the chord
// when the angle subtended at center
// by another chord of equal length is given
 
import java.io.*;
 
class GFG
{
     
static void angleequichord(int z)
{
    System.out.println ( "The angle subtended at the center is "+
        z + " degrees");
}
 
// Driver code
public static void main (String[] args)
{
 
    int z = 48;
    angleequichord(z);
}
}
 
// This code is contributed by ajit.


Python3
# Python3 program to find the angle
# subtended at the center by the chord
# when the angle subtended at center
# by another chord of equal length is given
 
def angleequichord(z) :
 
    print("The angle subtended at",
          "the center is", z ,"degrees" );
 
# Driver code
if __name__ == "__main__" :
     
    z = 48;
    angleequichord(z);
     
# This code is contributed by AnkitRai01


C#
// C# program to find the angle
// subtended at the center by the chord
// when the angle subtended at center
// by another chord of equal length is given
using System;
     
class GFG
{
     
static void angleequichord(int z)
{
    Console.WriteLine( "The angle subtended at the center is "+
        z + " degrees");
}
 
// Driver code
public static void Main (String[] args)
{
 
    int z = 48;
    angleequichord(z);
}
}
 
/* This code contributed by PrinciRaj1992 */


Javascript


输出:
The angle subtended at the center is 48 degrees