{"id":22911,"date":"2021-09-29T20:14:26","date_gmt":"2021-09-29T14:44:26","guid":{"rendered":"https:\/\/python-programs.com\/?p=22911"},"modified":"2021-11-22T18:35:35","modified_gmt":"2021-11-22T13:05:35","slug":"python-program-for-arc-length-from-given-angle","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-arc-length-from-given-angle\/","title":{"rendered":"Python Program for Arc Length from Given Angle"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Find Area of a Circular Segment<\/a>
\nGiven the diameter and angle of the circle, the task is to calculate the arclength from the given angle.<\/p>\n

An angle is a geometrical figure formed when two rays intersect at the same point on a plane. These rays form the angle’s sides, and the point where they intersect is known as the angle’s vertex. It is important to remember that the plane that forms an angle does not have to be a Euclidean plane. The length of an arc in a circle is now a fraction of the circumference.<\/p>\n

Formula:<\/strong><\/p>\n

ArcLength = ( 2 * pi * radius ) * ( angle \/ 360 )<\/p>\n

diameter = 2* radius<\/p>\n

The angle is given in degrees.<\/p><\/blockquote>\n

Note:<\/strong> It should be noted that if the angle is greater than or equal to 360 degrees, the arc length cannot be calculated because no angle is possible.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given diameter = 15\r\nGiven Angle = 60<\/pre>\n

Output:<\/strong><\/p>\n

The arc length for the given angle { 60 } degrees =  7.857142857142856<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given diameter = 30\r\nGiven Angle = 90<\/pre>\n

Output:<\/strong><\/p>\n

The arc length for the given angle { 90 } degrees =  23.57142857142857<\/pre>\n

Program for Arc Length from Given Angle in Python<\/h2>\n

Below are the ways to calculate the arc length from the given angle in python:<\/p>\n