Wednesday, 1 Dec 2021
Category: Coordinate Geometry

#include using namespace std;  double line_slope(double a, double b){    if (a != 0)        return -b / a;                  else        return (-2);}  void line_equation(double a, double b,                   double c, double x1,                   double y1, double alfa){        cout

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 […]

#include using namespace std;  int centralPoints(int arr[], int N){        int count = 0;              int c1, c2, c3, c4;          for (int i = 0; i < N; i++) {                                  c1 = 0, c2 = 0, c3 = 0;        c4 = 0;                  int x = arr[i];        int y = arr[i];                                  for (int j = 0; j < N; j++) {                                      if (arr[j] > x                && arr[j] == y) […]

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: […]

Area of largest isosceles triangle that can be inscribed in an Ellipse whose vertex coincides with one extremity of the major axis Given an ellipse with half the major and minor axes length A & B, the task is to find the area of the largest isosceles triangle that can be inscribed in the ellipse […]