直角三角形外接圆的面积?
当给出直角三角形的斜边(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
广告
数据结构
网络
关系型数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP