Q8 Write a program to receive value of an angle in degrees and check whether sum of squares of sine and cosine of this angle is equal to 1.

Program: 66

Write a program to receive value of an angle in degrees and check whether sum of squares of sine and cosine of this angle is equal to 1.

Output

 Enter the degree of angle: 45
 Result is: 1

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

One thought on “Q8 Write a program to receive value of an angle in degrees and check whether sum of squares of sine and cosine of this angle is equal to 1.

  • June 28, 2020 at 8:29 am
    Permalink

    Trigonometric functions are functions of an angle which are used to relate the angles of a triangle to the lengths of the sides of a triangle. For example, as depicted below, if we have a right triangle with one angle θ, having a as the opposite, b as the adjacent and c as the hypotenuse, then the following hold true.
    sin𝜃=𝑎𝑐 , cos𝜃=𝑏𝑐 and tan𝜃=𝑎𝑏
    Write a program that takes the values of the lengths of the hypotenuse (c) and the adjacent (b) from a user and finds angle 𝜽 by passing these lengths to the function findAngle. After finding and returning the angle 𝜽, your program should covert the angle 𝜽 from degrees into radians using the formula shown below: 𝑟𝑎𝑑𝑖𝑎𝑛𝑠= 𝜋180°×𝑑𝑒𝑔𝑟𝑒𝑒𝑠
    The calculated angle 𝜽 should then be displayed both in degrees and radians on the screen.

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.