+ 1
Size of the angle of a polygon C++
Posted a new program, to find the size of the angle subtending the side of a polygon of n sides (assumed to be inscribed in a circle.) Questions, comments, concerns? Upcotes? :)
3 Antworten
+ 3
int angle(side){
return (180 - 360/side)
}
+ 3
yes I liked your code it is nice
what I said was a function that returns angle subscribed by each vertices of nsided regular polygon in degrees
right ,the formula for calculating length of incircle of nsided polygon is complex and it depends on no of sides
+ 2
However, if a regular polygon be inscribed in a circle, the length of the side (except in the case of hexagon = radius) is not given.
The computation of the length of the side, ex conditionæ, is quite difficult.