本文介绍了圆环的表面和数学概念。
通过沿小圆圈(半径r)旋转小圆圈(半径r)而制成的3D形状。
财产:
- 可以通过沿大圆(半径R)制成的直线旋转小圆(半径r)来制成。
- 它不是多面体
- 它没有顶点或边
- 表面积
圆环的表面积由下式给出:
Surface Area = 4 × Pi^2 × R × r
- 其中r是小圆圈的半径,R是大圆圈的半径,Pi是常数Pi = 3.14159。
- 体积
圆锥体的体积由以下公式给出:
Volume = 2 × Pi^2 × R × r^2
- 其中r是小圆圈的半径,R是大圆圈的半径,Pi是常数Pi = 3.14159。
例子:
Input : r=3, R=7
Output :
Volume: 1243.568195
Surface: 829.045464
C++
// C++ program to calculate volume
// and surface area of Torus
#include
using namespace std;
int main()
{
// radus of inner circle
double r = 3;
// distance from origin to center of inner circle
// radius of black circle in figure
double R = 7;
// Value of Pi
float pi = (float)3.14159;
double Volume = 0;
Volume = 2 * pi * pi * R * r * r;
cout<<"Volume: "<
C
// C program to calculate volume
// and surface area of Torus
#include
int main()
{
// radus of inner circle
double r = 3;
// distance from origin to center of inner circle
// radius of black circle in figure
double R = 7;
// Value of Pi
float pi = (float)3.14159;
double Volume = 0;
Volume = 2 * pi * pi * R * r * r;
printf("Volume: %f", Volume);
double Surface = 4 * pi * pi * R * r;
printf("\nSurface: %f", Surface);
}
Java
// Java program to calculate volume
// and surface area of Torus
class Test {
public static void main(String args[])
{
// radius of inner circle
double r = 3;
// distance from origin to center of inner circle
// radius of black circle in figure
double R = 7;
// Value of Pi
float pi = (float)3.14159;
double Volume = 0;
Volume = 2 * pi * pi * R * r * r;
System.out.printf("Volume: %f", Volume);
double Surface = 4 * pi * pi * R * r;
System.out.printf("\nSurface: %f", Surface);
}
}
Python3
# Python3 program to calculate volume
# and surface area of Torus
# radus of inner circle
r = 3
# distance from origin to center of inner circle
# radius of black circle in figure
R = 7
# Value of Pi
pi = 3.14159
Volume = (float)(2 * pi * pi * R * r * r);
print("Volume: ", Volume);
Surface = (float)(4 * pi * pi * R * r);
print("Surface: ", Surface);
C#
// C# program to calculate volume
// and surface area of Torus
using System;
class GFG
{
// Driver Code
public static void Main()
{
// radius of inner circle
double r = 3;
// distance from origin to center
// of inner circle radius of black
// circle in figure
double R = 7;
// Value of Pi
float pi = (float)3.14159;
double Volume = 0;
Volume = 2 * pi * pi * R * r * r;
Console.WriteLine("Volume: {0}", Volume);
double Surface = 4 * pi * pi * R * r;
Console.WriteLine("Surface: {0}", Surface);
}
}
// This code is contributed by Soumik
PHP
Javascript
输出:
Volume: 1243.568195
Surface: 829.045464