Shoelace formula for polygonal area: Difference between revisions

m
→‎{{header|REXX}}: elided an errant HTML tag.
m (→‎{{header|REXX}}: elided an errant HTML tag.)
Line 330:
 
===version 2===
This REXX version uses a different method to define the &nbsp; <big>'''X<sub>0</sub>, &nbsp; Y<sub>0</sub>'''</big>, &nbsp; and &nbsp; <big>'''X<sub>n+1</sub>''', &nbsp; <big>'''Y<sub>n+1</sub>'''</big> &nbsp; data points &nbsp; (and not treat them as exceptions).
 
When calculating the area for many polygons &nbsp; (or where the number of polygon sides is large), &nbsp; this method would be faster.