public void getPoint(double r, double angle)
{
//cosine*hypotenuse=adjasent
double x = r * Math.cos (Math.toRadians(angle))//in radians;
//sine * hypotenuse =opposite
double y=r*Math.sin(Math.toRadians(angle))//also in radians;
System.out.println("( "+x+", "+y+" )");
}
int radius = 2; int output; radius = radius * 2; output = radius * Math.PI; Console.WriteLine(output);
// macro definitions: #define PI 3.14159265358979323846 #define CIRCUMFERENCE(radius) (2. * (radius) * PI) // use this as in CIRCUMFERENCE(21.34)
To calculate the area of a 20mm steel bar, you can use the formula for the area of a circle, which is ( A = \pi r^2 ). First, find the radius by dividing the diameter (20mm) by 2, giving you a radius of 10mm. Then, substitute the radius into the formula: ( A = \pi (10 \text{ mm})^2 ), which results in an area of approximately 314.16 mm².
#include<stdio.h> main() { int r; float area; clrscr(); printf("enter the value of r\n"); scanf("%d",&r); area=3.142*r*r; printf("area of circle=%f\n",area); getch(); }
public class CircleDiameter { publicCircleDiameter() { super(); } publicfloatgetDiameterFrmRadius(float radius){ return radius * 2; } /** * @param args */ public static void main(String[] args) { float radius = 5; CircleDiameter circle = newCircleDiameter(); float dia = circle.getDiameterFrmRadius(radius); System.out.println("Diameter of this circle is: " + dia); } }
The value of 1 degree in inches depends on the context, particularly the radius of the circle in question. For a circle, 1 degree corresponds to approximately 0.01745 radians. To convert this to inches, you can use the formula: arc length = radius × angle in radians. For example, if the radius is 1 inch, 1 degree would equal about 0.01745 inches.
Radius of a circle = diameter/2
int radius = 2; int output; radius = radius * 2; output = radius * Math.PI; Console.WriteLine(output);
Double the Radius to Calculate the Diameter.
Radius of a circle = diameter/2
From what? You need other variables you can use in the standard circle formulae from which to calculate the radius.
The radius is 12
The radius is a lenght, and it's impossible to find out the radius if you don't give any information about the size of your circle.
Divide the diameter by 2.
pi radius squared
The radius is one -half of the diameter. It is the distance from the circle center to any point on the circumference.
you calculate the Area of the circle at the end of the Cylinder and then multiply it by the lenght to the second circle at the end of the cylinder Circle area= Radius*Radius* pi pi being 3.14159265