
- 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 a hexagon?
Here we will see the area of biggest Reuleax triangle inscribed within a square which is inscribed in a regular hexagon. Suppose ‘a’ is the side of the hexagon. The side of the square is x and the height of the Reuleaux triangle is h.
From the formula of each side of inscribed square inside one hexagon is −
𝑥 = 1.268𝑎
The height of the Reuleaux triangle is the same as x. So x = h. So the area of the Reuleaux triangle is −
Example
#include <iostream> #include <cmath> using namespace std; float areaReuleaux(float a) { //side of hexagon is a if (a < 0) //if a is negative it is invalid return -1; float area = ((3.1415 - sqrt(3)) * (1.268*a) * (1.268*a))/2; return area; } int main() { float side = 5; cout << "Area of Reuleaux Triangle: " << areaReuleaux(side); }
Output
Area of Reuleaux Triangle: 28.3268
- Related Articles
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon in C?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse?
- Biggest Reuleaux Triangle within a Square which is inscribed within a Circle?
- Biggest Reuleaux Triangle inscribed within a square which is inscribed within an ellipse 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 an equilateral triangle?
- 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 in C?
- Biggest Reuleaux Triangle inscribed within a square inscribed in a semicircle in C?
- Biggest Reuleaux Triangle inscribed within a Square inscribed in an equilateral triangle in C?
- Biggest Reuleaux Triangle inscirbed within a square inscribed in a semicircle?
- Biggest Reuleaux Triangle within A Square?
- Biggest Square that can be inscribed within an Equilateral triangle?
- Biggest Reuleaux Triangle within A Square in C?
- Biggest Square that can be inscribed within an Equilateral triangle in C?

Advertisements