- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Area of Largest rectangle that can be inscribed in an Ellipse?
Here we will see the area of largest rectangle that can be inscribed in an ellipse. The rectangle in ellipse will be like below −
The a and b are the half of major and minor axis of the ellipse. The upper right corner of the rectangle is (x, y). So the area is
Now, after making this equation as f(x) and maximizing the area, we will get the area as
Example
#include <iostream> #include <cmath> using namespace std; float area(float a, float b) { if (a < 0 || b < 0 ) //if the valuse are negative it is invalid return -1; float area = 2*a*b; return area; } int main() { float a = 10, b = 8; cout << "Area : " << area(a, b); }
Output
Area : 160
- Related Articles
- Area of the Largest square that can be inscribed in an ellipse in C++
- Area of the largest triangle that can be inscribed within a rectangle?
- Area of largest triangle that can be inscribed within a rectangle in C Program?
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse?
- Area of a triangle inscribed in a rectangle which is inscribed in an ellipse In C Program?
- Find the area of largest circle inscribed in ellipse in C++
- Area of the biggest possible rhombus that can be inscribed in a rectangle in C?
- Area of the biggest possible rhombus that can be inscribed in a rectangle in C Program?
- Find the area of the largest triangle that can be inscribed in a semi-circle of radius $r$ units, in square units.
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle?
- Biggest Square that can be inscribed within an Equilateral triangle?
- Find the area of the circle that can be inscribed in a square of side $6\ cm$.
- Find the area of the square that can be inscribed in a circle of radius $8\ cm$.
- Biggest Square that can be inscribed within an Equilateral triangle in C?
- Area of a circle inscribed in a rectangle which is inscribed in a semicircle in C?

Advertisements