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
- Count right angled triangles in a matrix having two of its sides parallel to sides of the matrix
- Program to calculate area of Circumcircle of an Equilateral Triangle
- Area of Circumcircle of a Right Angled Triangle
- Area of Circumcircle of an Equilateral Triangle using Median
- Program to find the Circumcircle of any regular polygon
- Count number of triangles possible for the given sides range
- Count of acute, obtuse and right triangles with given sides
- Find all possible triangles with XOR of sides zero
- Count number of triangles possible with length of sides not exceeding N
- Find all sides of a right angled triangle from given hypotenuse and area | Set 1
- 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 if a point lies inside, outside or on the circumcircle of three points A, B, C
- Area of Triangle using Side-Angle-Side (length of two sides and the included angle)
- Program to find all possible triangles having same Area and Perimeter
- 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
- Maximize volume of cuboid with given sum of sides
- Check if given four integers (or sides) make 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.