+ 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? :)

23rd Nov 2016, 9:16 PM
Cassius Marcellus Zedaker
Cassius Marcellus Zedaker - avatar
3 Antworten
+ 3
int angle(side){ return (180 - 360/side) }
24th Nov 2016, 11:29 AM
Sandeep Chatterjee
+ 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
24th Nov 2016, 8:36 PM
Sandeep Chatterjee
+ 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.
24th Nov 2016, 7:53 PM
Cassius Marcellus Zedaker
Cassius Marcellus Zedaker - avatar