- C Programming Tutorial
- C - Home
- C - Overview
- C - Environment Setup
- C - Program Structure
- C - Basic Syntax
- C - Data Types
- C - Variables
- C - Constants
- C - Storage Classes
- C - Operators
- C - Decision Making
- C - Loops
- C - Functions
- C - Scope Rules
- C - Arrays
- C - Pointers
- C - Strings
- C - Structures
- C - Unions
- C - Bit Fields
- C - Typedef
- C - Input & Output
- C - File I/O
- C - Preprocessors
- C - Header Files
- C - Type Casting
- C - Error Handling
- C - Recursion
- C - Variable Arguments
- C - Memory Management
- C - Command Line Arguments
- C Programming useful Resources
- C - Questions & Answers
- C - Quick Guide
- C - Useful Resources
- C - Discussion

# Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse in C?

A **Reuleaux triangle** is a shape formed from the intersection of three circular disks, each having its center on the boundary of the other two. Its boundary is a curve of constant width, the simplest and best known such curve other than the circle itself. Constant width means that the separation of every two parallel supporting lines is the same, independent of their orientation. Because all its diameters are the same.

The boundary of a Reuleaux triangle is a constant width curve based on an equilateral triangle. All points on a side are equidistant from the opposite vertex.

To construct a Reuleaux triangle

Formula for Reuleaux triangle

Area of the Reuleaux Triangle, if curve based on an equilateral triangle and side of triangle is h

A = (π * h^{2}) / 2 – 2 * (Area of equilateral triangle) = (π – √3) * h^{2}/ 2 = 0.70477 * h^{2}

Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse

Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse

Biggest square which is inscribed within an ellipse

If a square is inscribed in an ellipse,

The equation of the ellipse is **x^2/a^2 + y^2/b^2 = 1**

If, **x = y**

then, **x^2/a^2 + x^2/b^2 = 1**

so, **x = √(a^2 + b^2)/ab**

**y = √(a^2 + b^2)/ab** then Area, **A = 4(a^2 + b^2)/a^2b^2**

Biggest Reuleaux Triangle within A Square

Area of Reuleaux Triangle is **0.70477 * b ^{2}** where

**b**is the distance between the parallel lines supporting the Reuleaux Triangle.

distance between parallel lines supporting the Reuleaux Triangle = Side of the square i.e. **a**

Area of the Reuleaux Triangle, **A = 0.70477 * a ^{2}**

Let’s take an example,

Input: a = 5, b = 4 Output: 0.0722389

## Explanation

the side of the square inscribed within an ellipse is, **x = √(a^2 + b^2)/ab**.

reuleaux triangle, **h = x = √(a^2 + b^2)/ab**.

Area of the reuleaux triangle, **A = 0.70477*h^2 = 0.70477*((a^2 + b^2)/a^2b^2)**.

## Example

#include <stdio.h> #include<math.h> int main() { float a = 6, b = 8; float h = sqrt(((pow(a, 2) + pow(b, 2))/ (pow(a, 2) * pow(b, 2)))); float area = 0.70477 * pow(h, 2); printf("The area is : %f", area); return 0; }

## Output

The area is : 0.030589

- Related Articles
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon in C?
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle?
- Biggest Reuleaux Triangle within a Square which is inscribed within a Circle?
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle in C?
- Biggest Reuleaux Triangle within a Square which is inscribed within a Circle in C?
- Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle?
- Biggest Reuleaux Triangle inscribed within a square inscribed in a semicircle in C?
- Biggest Reuleaux Triangle within a Square which is inscribed within a Right angle Triangle in C?
- Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle?
- Biggest Square that can be inscribed within an Equilateral triangle?
- Biggest Square that can be inscribed within an Equilateral triangle in C?
- Biggest Reuleaux Triangle within A Square?
- Biggest Reuleaux Triangle within A Square in C?