直角三角形外接圓的面積?
當給出直角三角形的斜邊(H)時,其外接圓的面積可以使用公式 πH2/4 計算。
此公式的推導利用了外接圓與三角形所有角都相切的事實,在本例中,兩點之間最大的距離在斜邊上,並且透過圓心。這使得斜邊成為圓的直徑。
這就是為什麼圓的面積公式為 πd2/4。(d = 2r)將 d 替換為 H。
示例
斜邊 = 8
圓的面積 = 50.26
示例程式碼
#include <stdio.h> int main(void) { int H = 14; float pie = 3.14; float area = (float)((pie*H*H)/4); printf("the area of circumcircle of a right angled triangle of Hypotenuse %d is %f",H,area); return 0; }
輸出
the area of circumcircle of a right angled triangle of Hypotenuse 14 is 153.860016
廣告