Biggest Reuleaux Triangle inscribed within a square which is inscribed within a hexagon | C ++ Program to find the biggest Reuleaux triangle inscribed within in a square which in turn is inscribed within a hexagon ; Function to find the biggest reuleaux triangle ; side cannot be negative ; height of the reuleaux triangle ; area of the reuleaux triangle ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; float Area ( float a ) { if ( a < 0 ) return -1 ; float h = 1.268 * a ; float A = 0.70477 * pow ( h , 2 ) ; return A ; } int main ( ) { float a = 5 ; cout << Area ( a ) << endl ; return 0 ; }