Here we have a rectangle of length l & breadth b.We have to find the circumradius of the rectangle.
Input : l = 3, b = 4 Output :2.5 Input :l = 10, b = 12 Output :3.95227774224
From the diagram, we can clearly understand the circumradius r is half of the diagonal of the rectangle.
r = √(l^2 + b^2)/2
Below is the implementation of the above apporach:
- Largest subset of rectangles such that no rectangle fit in any other rectangle
- Draw Rectangle in C graphics
- Path in a Rectangle with Circles
- Area and Perimeter of Rectangle in PL/SQL
- Sum of Area of all possible square inside a rectangle
- The biggest possible circle that can be inscribed in a rectangle
- Minimum squares to cover a rectangle
- Coordinates of rectangle with given points lie inside
- Minimum squares to evenly cut a rectangle
- Largest rectangle that can be inscribed in a semicircle
- Maximum area of rectangle possible with given perimeter
- Program to print a rectangle pattern
- Program for Area And Perimeter Of Rectangle
- Finding the best fit rectangle that covers a given point
- Count number of squares in a rectangle
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.