- 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

Suppose we have two sides of a right angled triangle, these sides are AB and BC. Consider the midpoint of hypotenuse AC is M. We have to find the angle between M and BC.

So, if the input is like ab = 6 bc = 4, then the output will be 56.309932474020215 because arc_tan of ab/bc is 0.9828 but in degrees it is 56.31.

To solve this, we will follow these steps −

- ans := arc-tan(ab/bc)
- return ans in degrees

Let us see the following implementation to get better understanding

from math import atan, pi def solve(ab, bc): def deg(rad): return 180/pi * rad ans = deg(atan(ab/bc)) return ans ab = 6 bc = 4 print(solve(ab, bc))

6, 4

45.0

- Related Questions & Answers
- Area of Circumcircle of a Right Angled Triangle?
- Find the dimensions of Right angled triangle in C++
- Area of Incircle of a Right Angled Triangle in C Program?
- Area of Circumcircle of a Right Angled Triangle in C Program?
- Find other two sides of a right angle triangle in C++
- Find other two sides and angles of a right angle triangle in C++
- Program to find the mid-point of a line in C++
- Find the hypotenuse of a right angled triangle with given two sides in C++
- Find the Number of Possible Pairs of Hypotenuse and Area to Form Right Angled Triangle using C++
- Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle?
- Check whether right angled triangle is valid or not for large sides in Python
- Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle in C?
- Program to find angle between hour and minute hands of a clock in C++?
- Maximum number of squares that can fit in a right angle isosceles triangle in C++
- Program to find number of ways we can reach from top left point to bottom right point in Python

Advertisements