- Related Questions & Answers
- Surface Area and Volume of Hexagonal Prism in C programming
- Sum triangle from an array in C programming
- Area of a n-sided regular polygon with given Radius in C Program?
- Area of a leaf inside a square in C Program?
- C Program for Area of a square inscribed in a circle which is inscribed in a hexagon?
- Area of decagon inscribed within the circle in C Program?
- Area of hexagon with given diagonal length in C Program?
- Area of largest Circle inscribed in N-sided Regular polygon in C Program?
- Area of Incircle of a Right Angled Triangle in C Program?
- Area of a square inscribed in a circle which is inscribed in an equilateral triangle in C Program?
- HTML DOM Area Object
- Program to calculate the area of a Tetrahedron
- Biggest Square that can be inscribed within an Equilateral triangle?
- Biggest Reuleaux Triangle within A Square?
- Biggest Reuleaux Triangle within a Square which is inscribed within a Circle?

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

For understanding this complex problem, let's do it in two parts. First we will find the dimensions of the rectangle and based on that we can find the area of a triangle inscribed in it.

Using the equation of ellipse and differential calculus, mathematical formula for the area of a rectangle is,

area = 2ab,

where 2a = major axis and 2b = minor axis.

The largest triangle that can be inscribed in the rectangle, should stand on the same base & has height raising between the same parallel sides of the rectangle.

The area of largest triangle inscribed within the rectangle is half the area of rectangle enclosing it. By this,

Area of triangle = ½ area of rectangle. area = ½ * (2ab) = ab

#include <stdio.h> int main() { float a = 5, b = 4; // major axis 2a and minor axis 2b printf("The major axis of ellipse is %f and minor axis of ellipse is %f \n", 2*a , 2*b); float area =a*b; printf("area = %f", area); return 0; }

The major axis of ellipse is 10.000000 and minor axis of ellipse is 8.000000 area = 20.000000

Advertisements