Irregular Areas

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/

You can then copy/paste the listing and post it in "code" tags.
Post Reply
Jim_W
Posts: 33
Joined: Fri Mar 15, 2019 3:36 am

Irregular Areas

Post by Jim_W »

Here is a little program that calculates the area and centroids of irregular shapes. The shape is placed in the first quadrant of a coordinate graph and the coordinates of each point defining the shape are input into the program. Input the points in a clockwise direction. After inputting all the points, hit the "CAL" (KEY 1), and the area, X-bar, and Y-bar will be displayed. Of course, having the centroids will allow you to calculate the volume of the revolved shape around the X or Y axis. - Jim_W
Attachments
Area.docx
Area of Irregular shapes
(13.37 KiB) Downloaded 177 times
Post Reply