regpolygon

버전 1.0.0 (16.8 KB) 작성자: Giuseppe Cardillo
Regular polygon facts and drawing
다운로드 수: 18
업데이트 날짜: 2021/2/9

In Euclidean geometry, a regular polygon is a polygon that is equiangular
(all angles are equal in measure) and equilateral (all sides have the same
length). This function gives all the possible properties of a regulare
polygon. Moreover, for polygons with 3<=n<=12 sides, will be shown an
animation to how contruct it (exactly or approximately) using ruler and
compass.

Syntax: regpolygon(varargin)

Inputs:
n: sides number, a scalar >=3 (3 by default)
L: side length, a scalar >0 (1 by default)
1 (right tailed)
Outputs:
Sides
Length
Fixed number
Apotema
Inscribed circle area
Height
number of diagonals
Perimeter
Area fixed number (phi)
Area
Circumradius
Circumscribed circle area
Interior angle
Exterior angle
Constructible or not

Example:

Calling on Matlab the function: regpolygon(5)

Answer is:

Value
_______

Sides 5
Length 1
Fixed_Number_(f) 0.68819
Apotema_(green) 0.68819
Inscribed_circle_area 1.4879
Height 1.5388
n_of_Diagonals 5
Perimeter 5
Area_fixed_number_(phi) 1.7205
Area 1.7205
Circumradius_(blue) 0.85065
Circumscribed_circle_area 2.2733

Interior angle: 3/5*pi 108.00°
Exterior angle: 2/5*pi 72.00°
Constructible polygon

인용 양식

Giuseppe Cardillo (2024). regpolygon (https://github.com/dnafinder/regpolygon), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2018a
R2018a에서 R2020b까지의 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.