- C++ Basics
- C++ Home
- C++ Overview
- C++ Environment Setup
- C++ Basic Syntax
- C++ Comments
- C++ Data Types
- C++ Variable Types
- C++ Variable Scope
- C++ Constants/Literals
- C++ Modifier Types
- C++ Storage Classes
- C++ Operators
- C++ Loop Types
- C++ Decision Making
- C++ Functions
- C++ Numbers
- C++ Arrays
- C++ Strings
- C++ Pointers
- C++ References
- C++ Date & Time
- C++ Basic Input/Output
- C++ Data Structures

- C++ Object Oriented
- C++ Classes & Objects
- C++ Inheritance
- C++ Overloading
- C++ Polymorphism
- C++ Abstraction
- C++ Encapsulation
- C++ Interfaces

# Find the area of largest circle inscribed in ellipse in C++

Suppose we have an ellipse, with major and minor axis length 2a & 2b. We have to find the area of the largest circle that can be inscribed in it. So if the a = 5 and b = 3, then area will be 28.2734

From the we can see that the radius of the maximum area circle inscribed in an ellipse will be the minor axis ‘b’. So the area will be A = π*b*b

## Example

#include<iostream> using namespace std; double inscribedCircleArea(double b) { double area = 3.1415 * b * b; return area; } int main() { double a = 10, b = 8; cout << "Area of the circle: " << inscribedCircleArea(b); }

## Output

Area of the circle: 201.056

- Related Articles
- Area of Largest rectangle that can be inscribed in an Ellipse?
- Area of the Largest square that can be inscribed in an ellipse in C++
- Area of largest Circle inscribed in N-sided Regular polygon in C Program?
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse?
- Find the Area of a Circle Inscribed in a Square in Java
- Find the area of the largest triangle that can be inscribed in a semi-circle of radius $r$ units, in square units.
- Area of circle inscribed within rhombus?
- C++ program to find the Area of the Largest Triangle inscribed in a Hexagon?
- Area of the Largest Triangle inscribed in a Hexagon in C++
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse In C Program?
- Area of decagon inscribed within the circle in C Program?
- Area of a circle inscribed in a regular hexagon?
- Area of circle inscribed within rhombus in C Program?
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle?
- Area of circle which is inscribed in an equilateral triangle?

Advertisements