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