Saturday, 4 Dec 2021
Category: Circles

#include using namespace std;  double radius(int a, int b, int c){            int g = a / 2;    int f = b / 2;          if (g * g + f * f – c < 0)        return (-1);          return (sqrt(g * g + f * f - c));}  double centerDistanceFromLine(int a, int b,                              int i, int j,                              int k){        int g = a / 2;    int f […]

Check if two circles intersect such that the third circle passes through their points of intersections and centersGiven centres and the radii of three circles A, B, and C in the form of {X, Y, R}, where (X, Y) is the centre of the circle and R is the radius of that circle. The task […]

Given four positive integers A, B, C, and D representing the length of sides of a Cyclic Quadrilateral, the task is to find the area of the Cyclic Quadrilateral.Examples:Input: A = 10, B = 15, C = 20, D = 25Output: 273.861Input: A = 10, B = 30, C = 50, D = 20Output: 443.706Approach: […]

Number of smaller circles that can be inscribed in a larger circleGiven two positive integers R1 and R2, where R1 and R2 represent the radius of the larger and smaller circles respectively, the task is to find out the number of smaller circles that can be placed inside the larger circle such that the smaller […]