Group Abstract Group Abstract

Message Boards Message Boards

0
|
78 Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:
GROUPS:

Does the Area function have a bug?

Posted 23 hours ago

The area of the quadrilateral formed by these four points isn’t 2, is it?

pts = {{0, 0}, {1, -1}, {1, 1}, {4, 0}}
Area[Polygon[pts]]

enter image description here

POSTED BY: Jim Clinton
3 Replies

The points are in the wrong order

pts = {{0, 0}, {1, -1}, {4, 0}, {1, 1}};

Area @ Polygon[pts]

4

POSTED BY: Frank Kampas
Posted 19 hours ago

To illustrate Frank's point:

POSTED BY: Hans Milton
Posted 13 hours ago

Thank you! So it's determined by the order of coordinates. Thanks!

POSTED BY: Jim Clinton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard