Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2006-01-19 01:24:31

johnocarolan
Member
Registered: 2006-01-18
Posts: 1

Calculating Irregular Areas

Hi,

Can anybody help me out with this -
I want to be able to calculate the are of irregular polygons - using the easiest and quickest but most accurate way - anybody any ideas?

examples are something like 5 or 6 sides (maybe more up to maximum of 10 sides), some other areas might have circular boundaries instead of straight lines.

Thanks in advance.

J

Offline

#2 2006-01-19 02:18:53

kempos
Member
Registered: 2006-01-07
Posts: 77

Re: Calculating Irregular Areas

I would divide your irregular shape into basic shapes, such as rectangles, trapazium, triangles, semicircles etc.

Forgot to add that you find their areas and add them together :-(

Last edited by kempos (2006-01-19 03:04:58)

Offline

#3 2006-01-19 02:21:19

Ricky
Moderator
Registered: 2005-12-04
Posts: 3,791

Re: Calculating Irregular Areas

You have to decompose the figure.  For example, if it's a triangle on top of a square, first find the area of the square, then the area of the triangle, and add them together.


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."

Offline

#4 2006-01-19 10:05:22

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,551

Re: Calculating Irregular Areas

I did this once.

Take the area from each line segment down to the x-axis, then add them up! Go clockwise, and if the line goes forwards the area is positive, if backwards negative. (Or the other way around, it doesn't matter, because if the result is a negative area just make it positive.)

View Image: temp5.gif

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#5 2007-03-04 13:05:01

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,551

Re: Calculating Irregular Areas

I have written this up here: Area of Irregular Polygons

Comments Invited!


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#6 2007-03-04 20:47:28

George,Y
Member
Registered: 2006-03-12
Posts: 1,306

Re: Calculating Irregular Areas

Suppose you have n points on your polygon. And they are A[sub]1[/sub],A[sub]2[/sub],...A[sub]n[/sub] counterclockwise sequenced, also you know their positions in Cartesian co-ords.

Let's define A[sub]1[/sub]= (x[sub]1[/sub],y[sub]1[/sub]),... A[sub]n[/sub]= (x[sub]n[/sub],y[sub]n[/sub])
And Det(12)=
|x[sub]1[/sub]  y[sub]1[/sub]|
|x[sub]2[/sub]  y[sub]2[/sub]|
=x[sub]1[/sub]y[sub]2[/sub] - x[sub]2[/sub]y[sub]1[/sub]

The Area of the Polygon=1/2 [ Det(12)+Det(23)+Det(34)+...+Det(n-1 n)+Det(n1) ]

ie (1,0) (0,3) (-1/3,0) (0,-2)
Det 3 1 2/3 2
Area=(3+1+2/3+2)/2

Last edited by George,Y (2007-03-04 20:51:42)


X'(y-Xβ)=0

Offline

#7 2007-03-04 20:54:37

George,Y
Member
Registered: 2006-03-12
Posts: 1,306

Re: Calculating Irregular Areas

Quickest and Absolute Accurate cool

Last edited by George,Y (2007-03-04 20:55:00)


X'(y-Xβ)=0

Offline

#8 2007-03-04 22:25:16

MathsIsFun
Administrator
Registered: 2005-01-21
Posts: 7,551

Re: Calculating Irregular Areas

I think that is right, George.

By rearranging how my procedure works: (x2-x1)(y2+y1)/2 + (x3-x2)(y3+y2)/2 + ... + (x1-xn)(y1+yn)/2

You do come up with 1/2 [ Det(12) + Det(23) + ...  Det(n1)]

My first term expands to x2y2 + x2y1 - x1y2 - x1y1. The x2y2 is cancelled by the next term's -x2y2, so the only functional part is x2y1-x1y2 which is the determinant (well, the negative of it, but that can be handled when the final answer is achieved).


"The physicists defer only to mathematicians, and the mathematicians defer only to God ..."  - Leon M. Lederman

Offline

#9 2007-03-04 23:51:14

George,Y
Member
Registered: 2006-03-12
Posts: 1,306

Re: Calculating Irregular Areas

Actually my solution is a formula already, which I came cross on some site. Using determinants to get the area of a polygon.

The basic part is that the area of triangle ABO equates one half of the determinant of coords of AB.

But the principle of this method is the same as that of yours.


X'(y-Xβ)=0

Offline

Board footer

Powered by FluxBB