最大的瑞利三角形在一个正方形内?
在这里,我们将看到最大的鲁洛三角形内接于正方形的面积。正方形的边是“a”。鲁洛三角形的高度为 h。
鲁洛三角形的高度与a相同。所以a=h。所以鲁洛三角形的面积是 -
示例
#include #include using namespace std; float areaReuleaux(float a) { //side of square is a if (a < 0) //if a is negative it is invalid return -1; float area = ((3.1415 - sqrt(3)) * (a) * (a))/2; return area; } int main() { float side = 8; cout