Given a triangle with known sides a, b and c; the task is to find the area of its circumcircle.
Input: a = 2, b = 2, c = 3 Output: 7.17714 Input: a = 4, b = 5, c = 3 Output: 19.625
For a triangle with side lengths a, b, and c,
Radius of the circumcircle: where A = √(s*(s-a)*(s-b)*(s-c)) and s = (a+b+c)/2 is the semiperimeter. Therefore, Area of the circumcircle:
Below is the implementation of the above approach:
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.
- Number of triangles formed by joining vertices of n-sided polygon with two common sides and no common sides
- Find all possible triangles with XOR of sides zero
- Area of Circumcircle of a Right Angled Triangle
- Area of Circumcircle of an Equilateral Triangle using Median
- Count of acute, obtuse and right triangles with given sides
- Count number of triangles possible for the given sides range
- Program to calculate area of Circumcircle of an Equilateral Triangle
- Find area of parallelogram if vectors of two adjacent sides are given
- Find area of triangle if two vectors of two adjacent sides are given
- Find all sides of a right angled triangle from given hypotenuse and area | Set 1
- Area of Triangle using Side-Angle-Side (length of two sides and the included angle)
- Program to find the Circumcircle of any regular polygon
- Find if a point lies inside, outside or on the circumcircle of three points A, B, C
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Calculate Volume, Curved Surface Area and Total Surface Area Of Cylinder
- Check whether triangle is valid or not if sides are given
- Find the type of triangle from the given sides
- Find other two sides of a right angle triangle
- Check if it is possible to create a polygon with given n sides
- Maximize volume of cuboid with given sum of sides
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.