TI-BASIC:Area

From Learn @ Cemetech
Revision as of 22:11, 24 February 2016 by Maintenance script (talk | contribs) (Automated @@ correction)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Routine Summary

Finds the area of any regular polygon.

Inputs

N,S

Outputs

F

Variables Used

Variables not documented.

Calculator Compatibility

TI-83/84/+/SE/CSE/CE

Download

No download provided.

:ClrHome
:Input "NUMBER OF SIDES: ",N
:Input "SIDE LENGTH: ",S
:NS^2/(4tan(180/N→F
:Pause F
:ClrHome

This program uses the tangent ratio to find the area of a regular polygon when giver the number of sides and side length.