Hello friends,
these are mathematical problems proposals to perform with App Inventor BLOCKS.
Please do not publish the answers in this discussion, since they are proposals for users who want to try or teachers who want to propose to their students.
1.- Given ordered coordinates of a polygon with n vertices, find area of the polygon.
The coordinates are given either in clockwise or anticlockwise.
Example:
coordinates (x1,y1,x2,y2,x3,y3,...) = 4,10,9,7,11,2,2,2
area = 45.5
Information:
https://www.mathopenref.com/coordpolygonarea.html
Solution with extension:
p150_extension_area.aia (11.2 KB)
1B.- Given ordered coordinates of a polygon with n vertices, find perimeter of the polygon.
The coordinates are given either in clockwise or anticlockwise.
https://www.mathsisfun.com/algebra/distance-2-points.html
1C.- Calculate the sum of the length of these segments.
Coordinates: x1,y1,x2,y2,x3,y3,...
Coordinates: 0,0,0,5,1,5,2,5,3,2,4,5,5,5,5,-5,6,-5,7,-4,8,-5,9,-5,10,-5,10,0
Sol: 35.15298
Unfinished: p150_longitud_i.aia (38.2 KB)