Login | Register

Challenge Questions

Stop in and exercise your brain. Talk about this week's Challenge from CR4 (weekly), Specs & Techs (monthly) or similar puzzles.

So do you have a Challenge Question that could stump the community? Then submit the question with the "correct" answer and we'll post it. If it's really good, we may even roll it up to Specs & Techs. You'll be famous!

Answers to Challenge Questions appear the following Tuesday.

Previous in Blog: Car Brakes: CR4 Newsletter Challenge (07/07/09)   Next in Blog: The Winning Team: CR4 Challenge (07/21/09)
Close

Comments Format:






Close

Subscribe to Discussion:

CR4 allows you to "subscribe" to a discussion
so that you can be notified of new comments to
the discussion via email.

Close

Rating Vote:







Page 1 of 2: « First 1 2 Next > Last »

Area Calculations: CR4 Challenge (07/14/09)

Posted July 12, 2009 5:01 PM

This week's Challenge Question:

You divide your lawn by a grid of 3-feet squares. Now take five stakes and put them at any five corners of your grid. Now take a long string and run it around the five stakes. What is the area of the lawn inside the string? Can you find a general equation to calculate this area?

And the Answer is....

The solution to this type of these type of lattice problems was developed in 1899 by Georg Alexander Pick, an Austrian Mathematician. He probed what is today known as the Pick's Theorem, which can be stated as follows: the area of a regular lattice polygon is equal to the number of corners inside the area minus one, plus one-half the number of corner points in the boundary.

Let's assume that the polygon that you formed by using the five stakes is shown in the following figure.


Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Comments rated to be Good Answers:

These comments received enough positive ratings to make them "good answers".

Comments rated to be "almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, rate them!
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 10336
Good Answers: 207
#1

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 10:39 AM

Can you find a general equation to calculate this area?
No

__________________
health warning: These posts may contain traces of nut.
Off Topic (Score 5)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#6
In reply to #1

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 2:58 PM

ROFL !

There's only 32 people logged on right now . Bit odd for this time of day.

__________________
...be afraid, be very afraid!
Off Topic (Score 5)
Guru
United States - Member - USA! Hobbies - Musician - Sound Man Engineering Fields - Mechanical Engineering - More than a Hobby

Join Date: Oct 2008
Location: City of Roses.
Posts: 1146
Good Answers: 38
#2

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 2:09 PM

HA!

Like I'd bother pretending to be some crazy mathematician, locking myself into a small room with a whiteboard for hours on end to figure out something I'd easily figure out with a good tape and some basic geometry.

__________________
Cheers!
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#3

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 2:11 PM

I use to do it on a coffee mill Facit but I will have to dig deep in my memory.

I think the method was based on :

Subdivide the area in 3 non overlapping triangles.

calculate the areas of the 3 triangles using the absolute coordinates of the corners. and add together.

A area triangle = 1/2 [x1y2 - x1y3 + x2y3 - x2y1 + x3y1 - x3y2]

It is not coming back yet but just have to take the sequence further ending up with - x5y4 ]

__________________
This post may contain threaded polydoes .
Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#4

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 2:24 PM

Either I'm dumber than a post (No! We're not voting on that.) or something has been omitted?

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
4
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#5

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 2:37 PM

I think I have it now

A = 1/2 [x1y2 - x1y5 +

x2y3 - x2y1 +

x3y4 - x3y2 +

x4y5 - x4y3 +

x5y1 - x5y4 ]

May I subdivide in 1*1 m blocks? - I don't have an imperial tape.

__________________
This post may contain threaded polydoes .
Good Answer (Score 4)
Power-User

Join Date: Feb 2008
Location: Washington State
Posts: 157
Good Answers: 28
#8
In reply to #5

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 5:30 PM

GA

As I understand it, the five posts are numbered in order from 1 to 5 following the string and the closing the loop from 5 back to 1. I get for this:

area = 1/2*{x1*(y2-y5) + x2*(y3-y1) + x3*(y4 - y2) + x4*(y5 - y3) + x5*(y1-y4)}

This is simply one half of the sum of the x value for each post multiplied by the difference in the y value of the next and previous post as we go around the string. I arrived at this solution by doing an example sketch and subtracting outlying pieces from the rectangle defined by the max - min dimensions in both x and y. I then used Mathcad to simplify.

Thanks,

Jim

3
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#14
In reply to #8

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 1:47 AM

I used it my way because it was the fastest method with the Facet

The one with the crank handle and a register shift by 10)

The actual formula for n points is :

A = 1/2 * ∑ 1-n of Xi * [ Y(i+1) - Y(i-1) ]

the points must follow in sequence but max zigzag back and even come back on the same line - as long as it does not cross.

Later since the HP9845 (1976) I preferred to use trig functions because it was available.

My Facit was an older version.

__________________
This post may contain threaded polydoes .
Good Answer (Score 3)
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#16
In reply to #14

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 2:47 AM

There's got to be something wrong here. If you're a long way from the X origin you get a bigger number than if you're close to it.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 10336
Good Answers: 207
#17
In reply to #16

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 2:53 AM

Don't you take one peg as the origin?
Drat I was going to unsubscribe...I don't like this stuff
Del

__________________
health warning: These posts may contain traces of nut.
Off Topic (Score 5)
Power-User

Join Date: Apr 2009
Location: USA MD
Posts: 126
Good Answers: 1
#30
In reply to #17

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 2:49 PM

Be a good kitty..........practical engineers usually do not enjoy mental masturbation!

__________________
What is right is not always popular. - What is popular is not always right.
Off Topic (Score 5)
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#18
In reply to #16

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 4:16 AM

No the formula works for any origin. (unless you exceed the capabilities of the calculator). Give it a try.

You are actually calculating triangles from the origin and will subtract the area outside of the area on the way back to point 1.

For working with bigger areas like for example a State you may need to do proper projections.

__________________
This post may contain threaded polydoes .
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#22
In reply to #18

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 5:10 AM

What am I misunderstanding

To make it easy for my brain, I've set the grid as unit instead of 3.

In the above picture, the area of triangles plus blue squares is;

3 + 1 + 1.5 + 2 + 4 + 1 = 12.5

Using the formula I get

1/2 [1(4-0) + 4 (3-2) + 6(0-4) + 5(0-3) + 3(2-0) ]

=1/2( 4 + 4 -24 -15 +6) = 1/2 (-5) dammit, you're correct ! Ignoring the sign, that comes out as 12.5

I don't fully grasp it yet, but nice work.

__________________
...be afraid, be very afraid!
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson

Join Date: Sep 2006
Location: Alberta, Canada
Posts: 1729
Good Answers: 49
#57
In reply to #22

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 3:32 PM

Why not this way?

Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#65
In reply to #57

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 2:29 AM

....'cos working out the area can be done in the head the way I sectioned it. I wanted that so I could bounce on quickly to check the formula. The way you've sectioned it, only 2 of the triangles jump out shouting their area. Having said that, it's still easier to deduct 4 triangles from a rectangle.

It could probably be tinkered with to illustrate fyz's explanation, though I haven't been tempted to try that yet.

Not sure how you adjusted the picture, but if you don't know the program it's one of my favourite free utilities for this type of play- Geogebra. Nothing fancy, but very neat all the same. It'd take me a very long time to be able to produce anything like the wonderful stuff I've seen on your posts, I'm much more inclined to the backs of envelopes/beermats !

__________________
...be afraid, be very afraid!
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson

Join Date: Sep 2006
Location: Alberta, Canada
Posts: 1729
Good Answers: 49
#67
In reply to #65

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 3:02 AM

I just took your image into paint.. and repainted it. like this one which shows other right triangles you can use to determline line lengths and subsequent areas, if you want.

Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#68
In reply to #67

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 3:43 AM

OK, how about this;

Walk the perimeter from point A, going clockwise. You can count the partial squares cut by the perimeter. Along each stretch of edge, they sum to n or n+0.5. Crossing an even nuber of partial squares will add up to n/2 full ones, and an odd number sums to ((n-1)/2 + 0.5). I'll admit that the half square in location (5,1) isn't obviously 1/2, but it must be so. Anyhow, you could walk along, adding up all those partial squares in your head. Adding on the whole white squares shouldn't be too much of a problem. If somebody lays out a grid someplace nice (maybe a tropical island), gives me a GPS and tickets, I'm willing to fly out and try this.

__________________
...be afraid, be very afraid!
Guru
Engineering Fields - Electromechanical Engineering - Technical Services Manager Canada - Member - Army brat Popular Science - Cosmology - What is Time and what is Energy? Technical Fields - Architecture - Draftsperson

Join Date: Sep 2006
Location: Alberta, Canada
Posts: 1729
Good Answers: 49
#71
In reply to #68

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 4:15 AM

as you fly, you will be going right over my head, just like this did...

Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#72
In reply to #71

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 7:41 AM

With one exception, the light green triangles in the picture all pair-up with dark ones.....

__________________
...be afraid, be very afraid!
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#73
In reply to #68

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 9:49 AM

That seems to be as good a visual way as any.

I think what you said was equivalent, but I would describe the method as "if you count every partial square as eqivalent to a 1/2 square, you'll get the correct area".

Perhaps this becoes more obvious if you match the colours of the squres that add to a whole square. In case that is not clear, an example: defining the position of squares by their bottom left-hand corner, each of the following pairs makes one square, and so would share a colour:
(1,2) + (3,3) {red?}
(2,2) + (2,3) {blue?}
(4,3) + (5,3) {green?}
etc.

Off Topic (Score 5)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#77
In reply to #73

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 10:38 AM

Yes, I reckon that nearly puts it as I was thinking;

Area = Σ(No. fully enclosed squares) + 1/2 Σ(No. partial squares)

Why do I think that will not get me a GA ?!

__________________
...be afraid, be very afraid!
Off Topic (Score 4)
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#78
In reply to #77

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 10:58 AM

I'll happily give you one when you post the version with the colour-paired picture - even though it's not a general equaton as requested for a complete answer to the challenge.

Off Topic (Score 5)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#79
In reply to #78

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 11:24 AM

Like this;

?

Shame I'm posting off-topic !

__________________
...be afraid, be very afraid!
Off Topic (Score 3)
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 10336
Good Answers: 207
#80
In reply to #79

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 11:42 AM

Kandinsky is alive and well and hiding in your drey

__________________
health warning: These posts may contain traces of nut.
Off Topic (Score 5)
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#87
In reply to #79

Re: Area Calculations: CR4 Challenge (07/14/09)

07/17/2009 4:20 AM

"Just like that"

Off Topic (Score 5)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#88
In reply to #87

Re: Area Calculations: CR4 Challenge (07/14/09)

07/17/2009 4:57 AM

Thanks Fez;

"It's the way I Del 'em"

__________________
...be afraid, be very afraid!
Off Topic (Score 5)
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 10336
Good Answers: 207
#89
In reply to #88

Re: Area Calculations: CR4 Challenge (07/14/09)

07/17/2009 5:09 AM

PMSL...

__________________
health warning: These posts may contain traces of nut.
Off Topic (Score 5)
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#90
In reply to #88

Re: Area Calculations: CR4 Challenge (07/14/09)

07/17/2009 5:20 AM

Holin1

Off Topic (Score 5)
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK, 51º 27' 33.83"N, 1º 0' 21.65"W
Posts: 4060
Good Answers: 106
#155
In reply to #68

Re: Area Calculations: CR4 Challenge (07/14/09)

08/29/2009 5:48 AM

.

__________________
Wit and sense are but different avatars of the same spirit L. Stephen
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#23
In reply to #18

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 5:19 AM

I've tried it: it works:-

I'm still trying to get my head round how.

Thanks

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#21
In reply to #14

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 5:00 AM

GA, though I would prefer write it as
A = 1/2 * ∑i=1...n {Xi*[Y(i+1) - Y(i-1)]}
. (and also add that Y0=Yn and Yn+1=Y1)
N.B. from a traditional integration background I would have described it as trapezoidal summation.

Another point to note is that the way I read the challenge, run around the stakes means that the string will not touch all the stakes if the polygon defined by the stakes themselves is re-entrant.
If on the other hand we fix the string to each of the stakes, I agree that it fails if the polygon is self-intersecting: depending on the topology, areas can be multiply counted or even counted negatively (it's really calculating area*number_of_directional_enclosures - good for magnetic field calculations and the like, but not so good for lawn-cutting).

Score 1 for Good Answer
Power-User

Join Date: Feb 2008
Location: Washington State
Posts: 157
Good Answers: 28
#7

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 3:14 PM

I think we need a more complete definition of the problem. But maybe something will come along in the discusson to make this clearer. In the figure below I've made up a example with the dotted lines being the 3 x 3 feet squares and the solid lines being the string.

By "corners of your grid" I am assuming that this is any of the corners of the 3 x 3 squares. Clearly, some of the area inside the string could be non-lawn. Depending on the shape of the lawn, it might not be possible to have the entire lawn inside the string.

Perhaps the challenge wants us to assign (x,y) coordinates to the stake locations and then use those coordinates to get an area.

Good luck,

Jim

Guru
Popular Science - Evolution - New Member Popular Science - Weaponology - New Member

Join Date: May 2006
Location: The 'Space Coast', USA
Posts: 2318
Good Answers: 140
#9
In reply to #7

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 8:46 PM

And what if one of those stakes is inside the area made by the other four?

Score 1 for Good Answer
Guru

Join Date: Sep 2007
Location: Defreestville, NY
Posts: 642
Good Answers: 48
#10
In reply to #9

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 10:10 PM

And what if my lawn is a circle?

__________________
Enjoy every sandwich - Warren Zevon
Commentator

Join Date: Jul 2008
Posts: 77
Good Answers: 10
#13
In reply to #10

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 11:00 PM

And what if I choose to mow it anyway?

Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#20
In reply to #10

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 4:51 AM

A circle can be done as long as the segments are short enough to approximate the circle. your points need to be increased.

__________________
This post may contain threaded polydoes .
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#15
In reply to #9

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 2:35 AM

GA in this example the first shape is 22 yd² and the second is 12 yd²

So I guess we have to assume that the 5 stakes form a convex shape.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Off Topic (Score 5)
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#19
In reply to #9

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 4:39 AM

It does not matter as long as you are not crossing any lines.

To understand the principle take a figure with any 5 points. (or n points for that matter)

Take the origin outside.

Draw connecting lines from the origin to each point.

Calculate the area of each triangle.

The areas of the triangles in the negative direction (outside of the figure) will be subtracted from the positive ones.

__________________
This post may contain threaded polydoes .
Power-User

Join Date: Feb 2009
Location: Constantia, NY way out in the middle of what's left of the open range
Posts: 121
#11

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 10:48 PM

Let's see, divide my lawn -- well now, therein lies the problem, I do not have a lawn. Would it work just as well for my big field out front on the other side of the road?

That being the case, I'll rush right over there in the morning and plant my stakes.

Then I'll call in my local land surveyor and have him figure it out for me.

Or would that be cheating?

Nah, with math problems, I need all the help I can get!

Ken Leigh

__________________
Ken
Off Topic (Score 5)
Guru
Hobbies - HAM Radio - New Member Engineering Fields - Mechanical Engineering - New Member United States - Member - New Member

Join Date: Jun 2007
Location: Kiefer OK
Posts: 1490
Good Answers: 22
#12

Re: Area Calculations: CR4 Challenge (07/14/09)

07/13/2009 11:00 PM

The missing piece of information is whether or not we are required to turn the corner at each stake. If we aren't, the simplest shape we have is something like this:



Of course, I'm only thinking of the simplest shapes right now. I'll have to cogitate on this issue more later, because it's late and I want to gaze at other parts of CR4 before I partake of slumber tonight.

__________________
I wonder..... Would Schrödinger's cat play with a ball of string theory?
Guest
#24

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 9:32 AM

This assumes a flat lawn. I live in the foothills of the Blue Ridge mountains, and my (~ 1 acre) lawn is nowhere near flat. It's a curving slope with a saddle shape at one end and a domed area at the other.

I need a general, non-Euclidian solution.

Guest
#25

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 10:19 AM

And you need to know this why?

Power-User

Join Date: Feb 2009
Location: Constantia, NY way out in the middle of what's left of the open range
Posts: 121
#26
In reply to #25

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 11:12 AM

And you need to know this why?

Because.

Ken Leigh

__________________
Ken
Off Topic (Score 6)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#27
In reply to #26

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 11:41 AM

And why does Guest need to know why we need to know this ? I don't really need to know why Guest needs to know why we need to know this, but for my part it's the sheer hell of it & the fun of stretching the grey matter. Still don't understand the solution, but I'm sure I'll feel better for it if I ever do.

The 3' must have been used (instead of unit) for a reason. Bogged if I can think what - it's a lawn not a yard.

__________________
...be afraid, be very afraid!
Off Topic (Score 5)
Commentator

Join Date: Apr 2008
Location: California
Posts: 56
#28
In reply to #25

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 11:50 AM

I too have an acer in the hills by Lake Tahoe and I need to know this so I can figure out just how bad my Gardener is ripping me off when he does the weed clean up each year. Though I do not mind paying since I drink beer and watch him sweat. I guess it all works out in the end.

Humm maybe I should buy goats..........................

__________________
Goals Begin Consequences, Behavior Maintains Goals.
Power-User

Join Date: Feb 2009
Location: Constantia, NY way out in the middle of what's left of the open range
Posts: 121
#29
In reply to #28

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 1:19 PM

I have a friend in Georgia who tried that. It wasn't bad until her partner brought more home for her to tend.

If that continues, I don't know what will happen to them.

Anyway, my dad had four goats on the farm when I was growing up. My baby brother was allergic to cow's milk and the doctor recommended goat's milk. I think it worked too. My "little" brother is now almost six feet eight inches tall and weighs close to three hundred pounds.

By the bye, he now hates goat's milk!

Ken Leigh

__________________
Ken
Off Topic (Score 5)
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#32
In reply to #29

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 3:30 PM

Surveyors work on a flat plane (500m above sea level in SA)

Land on a slope is bigger. Ls = Lh / COS (slope)

10deg = +1.5%

20deg = + 6.4%

The length above the plain at higher altitudes is also bigger.

__________________
This post may contain threaded polydoes .
Off Topic (Score 5)
Power-User

Join Date: Feb 2009
Location: Constantia, NY way out in the middle of what's left of the open range
Posts: 121
#36
In reply to #32

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 9:42 PM

Funny, the last time I had the place surveyed (when I bought the place umpteen years ago when land was a lot cheaper than it is now), I was given an exact figure of 7.35 acres of ground and that included the hill behind the house and the sharp drop off in front before the road and the other field on the other side, excluding the area occupied by the county road.

The point is, there are no "flat planes" on my property. In fact, it isn't square anywhere, but the surveyor was certain that his measurements were correct.

As near as I can figure it, he used Euclidian Geometry and basic mathematical formulae to arrive at his figure.

At any rate, the charge then was $75.00 and today the same survey would cost me close to $2000 and it wouldn't change my acreage by one square foot.

Ken Leigh

__________________
Ken
Off Topic (Score 5)
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#38
In reply to #36

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 3:28 AM

Maybe I should say it is projected onto a flat surface and then the area is calculated from the projection.

The projection is needed because the pieces of land must be compiled into an area plan, which would be impossible to do if the plans are distorted.

About 25 years ago I had the privilege of experiencing the American way of surveying and plans and was actually amazed. Really primitive compared to SA.

__________________
This post may contain threaded polydoes .
Guru
Hobbies - CNC - New Member Hobbies - DIY Welding - New Member

Join Date: Aug 2007
Posts: 3047
Good Answers: 28
#99
In reply to #36

Re: Area Calculations: CR4 Challenge (07/14/09)

07/18/2009 9:36 AM

Funny, the last time I had the place surveyed (when I bought the place umpteen years ago when land was a lot cheaper than it is now), I was given an exact figure of 7.35 acres of ground and that included the hill behind the house and the sharp drop off in front before the road and the other field on the other side, excluding the area occupied by the county road.

And when you sell your house, You need to have it resurveyed, only to find out that part of your house is built on some elses property.

__________________
They say that there is only one universal language that everybody can understand and that is mathematics. I like to think there are two, with the other being humor.
Off Topic (Score 5)
Power-User

Join Date: Feb 2009
Location: Constantia, NY way out in the middle of what's left of the open range
Posts: 121
#101
In reply to #99

Re: Area Calculations: CR4 Challenge (07/14/09)

07/18/2009 10:53 PM

Good grief! I hope not. That would make me NOT the master of all I survey (pun intended).

__________________
Ken
Off Topic (Score 5)
Power-User

Join Date: Mar 2009
Location: united states, california san francisco bay area native
Posts: 389
Good Answers: 7
#33
In reply to #28

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 3:33 PM

was that you hearding them saturday using a tractor ? about 4: 30 pm?..

__________________
give the hardest job to the laziest person & they'll find the easiest way to do it
Off Topic (Score 5)
Guest
#31
In reply to #25

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 2:58 PM

I have a Tall Fescue lawn, and I need to re-seed it this Fall. I'd like to know the exact amount of grass seed I'll need.

Yes, I'm kidding.

I just wanted to make the point that even a 'general solution' is not truly general unless it works for non-Euclidian spaces, too. My lawn is non-Euclidian.

Power-User

Join Date: Mar 2009
Posts: 154
#156
In reply to #31

Re: Area Calculations: CR4 Challenge (07/14/09)

08/29/2009 10:55 AM

give an exact mathematician equiation of the surface of the lawn and it will be possible!

Guru

Join Date: Jun 2009
Location: South of Minot North Dakota
Posts: 528
Good Answers: 48
#34

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 7:48 PM

Okay I have 1 post in 5 out of the six areas of my property that get mowed. What do I do now?

It takes me 8 hours with a 46 inch cut mower to do all of my yard sections. The post and grid concept doesn't factor in for the hills trees, junk, stuff, and other things I have to mow around.

My mower does not make perfect angular corners either. So do I have to subtract the radius for each corner from the whole as well?

Its just another impractical application of nearly useful mathematics.

__________________
The best hire the best. The second best hire the third best. -- tcmtech
Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#35

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 7:55 PM

I still believe something is missing. The general equation for area enclosed by a polygon (the surveyor's area equation) has been stated by many, but what about the question, "What is the area of the lawn inside the string?" I still don't see how to get that.

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Guest
#39
In reply to #35

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 6:11 AM

You know the positions of the posts, so you can count their Cartesian co-ordinates (in units of one yard) from an arbitrary point. You know the equations, so (assuming that the string is sensibly routed) you can calculate the enclosed area; this will initially be in square yards - multiply by 9 to convert to square feet if you wish.

That's obviously too easy - so can you say where the problem lies?

Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#40
In reply to #39

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 7:31 AM

OK. Let me give the coordinates (in yards) of my five stakes.

(0,0)

(3,1)

(5,0)

(2,4)

(2,2)

Now, what is the area? I cannot determine it.

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#41
In reply to #40

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 8:06 AM

Try drawing it out as I did in #22 (starting at point A - ignore the other letters, just work clockwise). I still can't see how the formula was derived

There's probably some way by counting the number of grid-lines crossed as you 'walk' around the perimeter, though I can't see a 'neat' way of expressing it. Alternatively, there may be a way by counting the number of intersections enclosed by the pentagon + corners of 3' squares that are just excluded by the pentagon. Haven't had time to think that through.

__________________
...be afraid, be very afraid!
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 10336
Good Answers: 207
#43
In reply to #41

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 8:23 AM

I have a method but it involves pigeons and treacle, I'm still working out a few teething troubles though.
Del

__________________
health warning: These posts may contain traces of nut.
Off Topic (Score 5)
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#45
In reply to #43

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 9:46 AM

First eat the pigeons, that leaves a sticky problem.
Then have your humans consume the treacle...
Sorted!

Off Topic (Score 5)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#48
In reply to #45

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 12:28 PM

I think Del just wants to be amongst the pigeons. Cat's, eah, what do ya do with 'em. Chuck 'em on the roof of a tin tabernacle in summer and watch 'em dance.

__________________
...be afraid, be very afraid!
Off Topic (Score 5)
2
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#44
In reply to #41

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 9:44 AM

Hopefully, the following, coupled with some drawings, will help sort this out:

The area of the trapezium with corners
(xr, yr), (xr+1, yr+1), (xr+1, 0), (xr, 0)
is clearly the width multiplied by the average height - or
(xr+1-xr)*{(yr+yr+1)/2}, which expands as:
1/2*(xr+1*yr+xr+1*yr+1-xr*yr-xr*yr+1)

You then need to consider two effects:
. First, the sign of the area depends on which order you choose xr+1 and xr
. . This means that the direction in which you take the trapezium is important.

. Second, if you add two new trapeziums, each of which shares a vertical side with the original, the total area will be:
. . 1/2*(xr+2*yr+1+xr+2*yr+2-xr+1*yr+1-xr+1*yr+2+xr+1*yr +
. . xr+1*yr+1-xr*yr-xr*yr+1+xr*yr-1+xr*yr-xr-1*yr-1-xr-1*yr)

You can see that two of the terms from the original expression (i.e. xr+1*yr+1 and xr*yr) cancel. If we calculate the area of all such trapeziums that can be made with the sides of a polygon, all similar terms will cancel, and we are left with Hendrik's expressions.

Returning to the first effect, we can see that (for y>0) segments that go from left to right will have the areas calculated as positive, and segments that go right-to-left are negative. Taking the simplest case of a polygon that is entirely above the x-axis, and that is is not re-entrant: if we take the points in a clockwise direction, the trapeziums under the lines at the top will count as positive, and those under the lines at the bottom will be subtracted. Clearly, that gives the correct area. Extension to sections below the x-axis and to re-entrant polygons should be reasonably straightforward (if tedious).

The final step is to draw polygons that are figure of eight and double-enclosures respectively. You will see that if one half of the figure-of-eight will to be calculated as positive area, the other half will be calculated negative. And areas that are enclosed twice will be counted twice (unless you add an extra twist, in which case they might not be counted at all)
________________________________
Thanks be to Gauss

Good Answer (Score 2)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#47
In reply to #44

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 12:21 PM

Many thanks Fyz, the elaboration does make it clearer, and it's also the first full explanation (I think) of the formula applied. Therefor I shall merrily GA you.

The problem still seems a bit 'empty'. If I ever found myself in the situation described, I'd just work out the size of an enclosing rectangle (one side of the pentagon being on it) and some triangles.

We seem all but done here, so you may enjoy a puzzle from Simon Singh's monthly newsletter;

"Today I was interviewed by Luke Stegemann of the Adelaide Review. He has been experimenting with numbers and discovered solutions to the equation:
A^(B+C)=BCA

For example, 5^(1+2)=125. Can you find another solution?"

There's an obvious answer for single digit numbers, but I'm not sure about the case where any number(s) > 1 digit (if such solutions exist).

__________________
...be afraid, be very afraid!
Off Topic (Score 5)
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#63
In reply to #47

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 5:03 PM

"The problem still seems a bit 'empty'. If I ever found myself in the situation described, I'd just work out the size of an enclosing rectangle (one side of the pentagon being on it) and some triangles."

In terms of small numbers of stakes on gridded positions and only making occasional calculations, I'm sure I'd do the same. But with curves you need to resort to integration, and the method is readily extended to cover that. The area integral in this form is quite important in field theory (hence my reference to Gauss).

Historically, it was also useful for land survey, where the number of stakes can be rather large and the distances between them are not usually whole numbers.

Regarding the expression 6^(2+1)=216: - this sort of number play has always left me cold, especially when (as in this case) tied to an arbitrary number base. It is also obvious that large values of any of the three integers will soon result in numbers that are too large to express as suggested, so it would be straightforward (but tedious and un-illuminating) to write a program to perform an exhaustive search.

Regards

Fyz

Off Topic (Score 5)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#66
In reply to #63

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 2:33 AM

but I'm not sure about the case where any number(s) > 1 digit (if such solutions exist).

I was thinking no further solutions (other than 216) existed, though I can't see a way of proving it yet.

__________________
...be afraid, be very afraid!
Off Topic (Score 5)
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#69
In reply to #66

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 4:00 AM

If you allow all non-negative integers we also have 1(0+0)=001.

Exhaustive search is the only way for this sort of problem (yawn). But the search can easily be set up on a spread-sheet* and won't be very large, as there is no purpose in searching beyond the following magnitudes:

213, 36, 44, 53, 63 ... 213, 222 ... 542

*With a little effort setting it up (dividing the result by 10N and taking the integral part to check against the first term in the braces, and then subtracting 10N times the first term and checking the next term in the same way, etc.) you can automate the whole thing.

Off Topic (Score 5)
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#70
In reply to #69

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 4:10 AM

It's such a silly problem that I may just have to check now ! Note use of word 'may.

__________________
...be afraid, be very afraid!
Off Topic (Score 5)
Power-User

Join Date: Jun 2007
Location: Madras, India
Posts: 130
Good Answers: 6
#144
In reply to #44

Re: Area Calculations: CR4 Challenge (07/14/09)

07/28/2009 12:50 PM

When I posted my #141, I was just responding to Randall's solution in #130. I hadn't looked carefully enough into the earlier posts which have by-and-large anticipated what I tried to put across. For instance: jim35848 (#8), Hendrik (#14 & #64), SlideRuler (#84), and some more of yours. Your #44 provides a fairly complete account of how the formula works. Since I get easily intimidated by algebraic expressions, I did a bit of rough sketching and numerical checking using 'easy' coordinates to satisfy myself.

My pentagon with the sequence (-1, -2), (1, -1), (3, 1), (2, 3), (-2, 2) had an area of 30/2 = 15, whereas a crossed pentagon with the same points in altered sequence (-1, -2), (1, -1), (2, 3), (3, 1), (-2, 2) had an area of 15/2 = 7.5 because a negative term reduces the overall value.

It will take far too much effort to represent all that pictorially in CR4, but using a rough sketch or points on square-ruled paper it is easy to just keep your fingers in sequence on the three relevant points for each term [ xi (yi+1 - yi-1) ] as indicated in your #21, and write down the relevant rectangle area by inspection (if the integers are small enough and the minus signs not too confusing). It's also quite straightforward on a calculator.

I also verified that the symmetrical crossed quadrilateral (1, 1), (4, 2), (2, 4), (5, 5) has zero area.

All this may be trivial stuff to many folks, but I find it interesting and of practical value.

=TeeSquare=

Guest
#42
In reply to #40

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 8:10 AM

Assuming flat ground and that the string joins the posts in order and the last to the first (and it's all grass in the centre):

Hendrik gave the formula for five stakes as:

Area = 1/2 [x1y2-x1y5+x2y3-x2y1+x3y4-x3y2+x4y5-x4y3+x5y1-x5y4],

Using your positions, this gives:

1/2*(0*2-0*1+3*0-3*0+5*4-5*1+2*2-2*0+2*0-2*4)

= 5.5 square yards (49.5 sq-ft)

(I checked for careless mistakes by drawing it on paper - same answer).

Am I missing something subtle, or are you complaining about the necessary assumptions (given the cryptic wording), of how the stakes are joined, plane ground, and everything enclosed being grass?

Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#46
In reply to #42

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 12:10 PM

No, you're missing something the size of a battleship. Perhaps you have to have really screwed up surveying a plot to see the problem.... Or perhaps you live in a state that doesn't use metes and bounds.

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#54
In reply to #46

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 1:09 PM

I think that you've managed to be 'superior' without even trying to explain the problem you perceive.

I'm assuming of course that you gave absolute stake positions in the standard order - with the sequence of defined stakes corresponding to string connections. (Note that the calculations ask for the "area inside the string" rather than the area the stakes were initially intended to measure).
I also assumed that you gave absolute positions, as required by use of the term "coordinates" in an engineering forum.

But I see that you referred to the method of metes and bounds. That would usually mean using relative positions. Obviously you can't have done that, because the relative positions you give would have the string crossing itself, which metes and bounds methods wouldn't allow. Plus, Hendrik already explained that if the string crosses itself the method breaks down.

If you believe there is a different and significant difficulty I humbly suggest it's more than time to get your act together and explain it.

Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#59
In reply to #54

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 3:41 PM

Snippy today?

What standard order? Reread the challenge. I didn't cross any strings.

Did I ever tell you about the time I surveyed a right-of-way and got a negative area? I went down to the tax office and told them they owed me. Threw me out, they did.

(This is a standard surveying calculation and has a standard caveat; only dumbasses like me forget that caveat - but only once!)

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#61
In reply to #59

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 4:08 PM

The question did not say that 'you' only knew the position of the stakes and not how you ran the string. It asked if you could calculate the area after 'you' had run the string. So of course that information was available to you. Whether you communicated accurately to me is irrelevant - according to the challenge 'you' had knowledge of the position of the string, so 'you' could calculate the area. To say that you (TVP45) couldn't was simply false.

Given your reservations (and contributions elsewhere), I would have expected you to clarify the proviso that the stakes needed to be listed clockwise in the order that the string connected them (assuming that you had listed the positions in standard Cartesian order); that would have been positive. What you actually wrote was merely irritating. In addition you made reference to metes and bounds; as you should know, this system uses differential measures* taken in standard order, and taking your numbers to represent differentials would indeed have given a self-intersecting boundary.

*Professionally used these would usually include a "check" measure from the final point to the first - which is why I assumed absolute measures in the first instance.

Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#49
In reply to #40

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 12:40 PM

You mean like this ;

? That looks to be 6 square yards. Are you saying you can't get the formula to work ?

__________________
...be afraid, be very afraid!
Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#50
In reply to #49

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 12:50 PM

Yep, that one's 5.5 square yards. No problem. And, the next one is...

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#51
In reply to #50

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 12:54 PM

huh?

__________________
...be afraid, be very afraid!
Power-User

Join Date: Feb 2008
Location: Washington State
Posts: 157
Good Answers: 28
#75
In reply to #49

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 10:12 AM

I think you have plotted point C one square too high and the area is really 5.5 square yards.

Guru

Join Date: Mar 2007
Location: Etherville , U.K.
Posts: 9872
Good Answers: 47
#76
In reply to #75

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 10:27 AM

Nah, it's TVP's fault - he listed the point as (5,1) when he intended to write (5,0) .

Cheers, jim. My booby-wooby.

__________________
...be afraid, be very afraid!
Associate

Join Date: Jan 2009
Posts: 44
#37

Re: Area Calculations: CR4 Challenge (07/14/09)

07/14/2009 9:59 PM

Do you mean 3 square feet or squares having sides equal to 3 feet (9 square feet)?

Power-User

Join Date: Feb 2008
Location: Washington State
Posts: 157
Good Answers: 28
#52

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 12:57 PM

I still have some concern we are not considering that part of the area enclosed by the string is outside the lawn. Unless the lawn is a rectangle, I think there are ways to enclose non-lawn areas inside the string. However, I don't think that was what was intended by the challenge question.

One point to be made is the area inside the string is some multiple of half a square yard. Assuming all of the stakes are at unique corners, the smallest area is 1.5 square yards and the possible areas go up in half square yard increments. Enclosed areas of 1.5, 2, and 2.5 square yards are shown below.

I have interpreted "take a long string and run it around the five stakes" to mean that the string does not cross itself and we end up with some configuration as shown in the following figure.

My next question is, "Given a string of length L, is there a general equation to calculate the maximum area inside the string?"

Thanks,

Jim

Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#53
In reply to #52

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 1:04 PM

Obviously a pentagon, except you have to approach it from discrete coordinates.

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#56
In reply to #52

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 3:20 PM

Rectangle, or ellipse, or parallelogram, or...I think a sufficient (though not always necessary) condition that everything inside the string is lawn is that the lawn perimeter is convex.

A point of perhaps marginal interest: if we are talking about actual area of lawn enclosed, your comment about 0.5-square yard multiples only breaks down if the string crosses itself.

I'm afraid that the 1.5 square yards minimum requires an unstated constraint for the positions of the stakes.
We can get 1-square yard with each stake needed to define the shape of non-zero enclosed area - as in the example below:
1.N.4
2.5.3

If we allow some stakes to be redundant (so far as defining non-zero area is concerned), we can enclose areas of 0.5 square yards (or even zero)

Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#60
In reply to #52

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 3:45 PM

I omitted to address the "next question". I'm reasonably confident that with an unlimited number of stakes and discrete locations the answer will be no*, but such negatives are notoriously difficult to prove.
*Other than an iterative method.

If we restrict ourselves to a triangle I think we could manage a discrete (but quantised) equation. If that is correct, there is probably an increasingly complex hierarchy (depending on the length of the string) that involves stacked max(min(...)) type statements.

Power-User

Join Date: May 2008
Posts: 103
Good Answers: 6
#93
In reply to #52

Re: Area Calculations: CR4 Challenge (07/14/09)

07/17/2009 12:03 PM

My next question is, "Given a string of length L, is there a general equation to calculate the maximum area inside the string?"

This sort of problem is solved by a branch of calculus called "Calculus of Variations". By these means it can be proven that the circle encloses the greatest area for a given perimeter.

I tried to find a simple reference for this but was unsuccessful.

Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#94
In reply to #93

Re: Area Calculations: CR4 Challenge (07/14/09)

07/17/2009 12:19 PM

I think Jim is after a solution which obeys all the rules of the original challenge, but, has the additional constraint that someone nicked most of your ball of string.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Off Topic (Score 5)
Power-User

Join Date: Mar 2009
Posts: 154
#157
In reply to #52

Re: Area Calculations: CR4 Challenge (07/14/09)

08/29/2009 11:16 AM

the biggest area in a given lenght of line is still a circle!

2
Power-User

Join Date: May 2008
Posts: 103
Good Answers: 6
#55

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 3:15 PM

This problem can readily be solved using vector algebra as shown below

Select any stake as the origin "o" of your lawn grid.

Place the other four stakes according to the rules at points a,b,c,d as shown in Fig 1

The area required is the area of the polygon oabcd, which is seen to be the sum of the triangles Δoab, Δobc, Δocd.

Writing A for the vector oa ; and B for the vector ob, the area of the triangle Δoab can be expressed as the cross product A X B which in the terms of its components is 1/2.(xa.yb - xb.ya).

Similarly we get; Δobc = 1/2(xb.yc - xc.yb) and Δocd = 1/2(xc.yd - xd.yc)

Therefore the required area is:

Polygon oabcd area = 1/2(xa.yb - xb.ya + xb.yc - xc.yb + xc.yd - xd.yc)

Note that Fig 1 shows a polygon with all interior angles obtuse to make the problem easier to visualize. The cross product of two vectors is a vector itself and will be + when the triagle is traced clockwise and - otherwise. This automatically accounts for "re-entrant shapes as will be seen in Fig 2 where point c has been moved and Δobc has a negative area

Good Answer (Score 2)
Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#58
In reply to #55

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 3:32 PM

There only problem that previous solutions had with re-entrant polygons was if the "run around the five stakes" means that the string is tightened around the outside of the stakes, rather than running from stake to stake. (That of course depends on how you read the challenge).
I've had a look at solving both that interpretation, and the problem of the string intersecting itself; but I can only find iterative solutions, which I wouldn't describe as "general"

Guru
Hobbies - HAM Radio - New Member Engineering Fields - Mechanical Engineering - New Member United States - Member - New Member

Join Date: Jun 2007
Location: Kiefer OK
Posts: 1490
Good Answers: 22
#62

Re: Area Calculations: CR4 Challenge (07/14/09)

07/15/2009 4:38 PM

I might have stumbled upon a simple method that could be used with a particular class of shapes. Irregular polygons, with 5 vertices and a generally convex shape, can be divided into 3 triangles.

__________________
I wonder..... Would Schrödinger's cat play with a ball of string theory?
Guru
Popular Science - Biology - New Member Hobbies - Musician - New Member Hobbies - CNC - New Member

Join Date: Jan 2007
Location: Centurion, South Africa 25 51' 20" S 28 12' 12" E
Posts: 3031
Good Answers: 55
#64

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 2:01 AM

To understand the formula for n points first have a look at 3 points (triangle)

Start with any oblique triangle ABC

(0,-1) (2,2) (4,0)

Change the Y value of point 1 to zero. Note that the Area did not change

Now change the X value of point 2 to 4. No change in Area

The area of the triangle is now 1/2 * base * height

What is important in a triangle is the width and the height.

The formula for a any triangle is

Area = 1/2( x1(y2 -y3) + x2(y3 -y1) + x3(y1 - y2))

In a right triangle and the origin at one of the points only the term containing the base and the height will have a value.

In an oblique triangle or an outside origin extra terms will cancel out.

This principle will hold true for triangles in a n sided polygon.

This formula can also be derived from the law of sines, law of cosines etc.

__________________
This post may contain threaded polydoes .
Power-User

Join Date: Jun 2007
Location: Madras, India
Posts: 130
Good Answers: 6
#143
In reply to #64

Re: Area Calculations: CR4 Challenge (07/14/09)

07/28/2009 12:47 PM

"... Change the Y value of point 1 to zero. Note that the Area did not change ..."

I think that statement and a later one are not true unless the vertex shift is parallel to the opposite side. The formula is however correct, and I tried to give a geometrical reasoning in #141.

=TeeSquare=

Score 1 for Good Answer
Guest
#74

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 10:01 AM

In reply to #40:

The problem does not appear to state in what order the points have to be connected.

For example:

If you connect P1 to P2 to P3 to P4 to P5 to P1 the area is 5.5

If you connect them P1 to P4 to P5 to P2 to P3 to P1 the area is 6

Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#81

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 1:29 PM

At the risk of irritating a few people for whom this is too obvious I'd like to just pull together a few posts from this thread.

First the area of a triangle from the origin to two points can be found like this:-

The area of the green triangle is clearly the area of the whole rectangle (x1*y2) minus the area of the yellow triangles

x1*y2-½[x1*y1+x2*y2+(x1-x2)*(y2-y1)]

Which all simplifies (surprisingly to me) to

½(x1*y2 - x2*y1)

It doesn't matter what the orientation or position of the original line is it always works out.

This is apparently the cross product of the two vectors and SlideRuler referred to it in his post #55. But I can't see why it's true. Also because the points are arbitrary you can't guarantee whether you'll get a positive or negative number.

So now if you want to calculate the area of a pentagon like this:-

You just have to add up triangles eaO, abO, bcO, and then subtract triangles cdO and edO (where O is the origin' sorry left it off the diagram). It turns out that as long as you do the calculation consistently you don't need to worry about which triangles to add, and which to subtract: so the answer is:-

½[(xayb-xbya) + (xbyc-xcyb) + (xcyd-xdyc) + (xdye-xeyd) + (xeya-xaye)]

And, this works for all polygons and shapes (but clearly you need to either make sure you start with a "positive" triangle or just take the absolute value of the result).

This formula can be re-arranged easily to form which Hendrik gave early on but seems far more intuitive in the form above. Also Hendrik did point out the intuitive idea of adding and subtracting triangles in post #19.

Good challenge question. I had no idea about the cross product thing, but, I still have the curious geometric puzzle:-

Why is the green triangle's area equal to half the blue rectangle minus the red rectangle?

There must be a good dissection which makes it obvious, but I can't see it at the moment.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Score 1 for Good Answer
Guru

Join Date: Jul 2007
Posts: 3356
Good Answers: 81
#82
In reply to #81

Re: Area Calculations: CR4 Challenge (07/14/09)

07/16/2009 2:39 PM

It might help to project to the axes and then you have trapezoids. The area of a trapezoid is 1/2 the sum of the bases x the height. Then subtract the trapezoids that aren't there.

Just another way to see it.

__________________
"If you aren't gonna shovel coal, keep your hands off the train whistle!" - Jr. Zirk
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#85
In reply to #82

Re: Area Calculations: CR4 Challenge (07/14/09)

07/17/2009 2:35 AM

See Fyz' post #44

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Off Topic (Score 5)
Power-User

Join Date: May 2008
Posts: 103
Good Answers: 6
#129
In reply to #81

Re: Area Calculations: CR4 Challenge (07/14/09)

07/21/2009 3:54 PM

Don't know if you solved this geometric puzzle to your satisfaction or not, but I offer this interpretation.

Fig 1 The blue (which is also under the yellow triangle) should have double the area of the triangle.

FIG 2. Move the three blue areas as shown. The bulk of the triangle is sandwiched in blue, and therefore using 2X the area for this portion. We can therefore discard it and concentrate on the 2 blue and 1 yellow shapes left.

Fig 3. Splitting the yellow in two as shown, the yellow triangle can be skewed without affecting the area to the position shown where it is clearly 1/2 of its blue companion. This is a special case however, since in the case chosen the base of the yellow triangle is equal to the side of companion rectangle. In general this will not be the case and the base of the triangle and the side of the rectangle will form a rational fraction. Nevertheless it is true for the figure chosen (where each length is 1/2 the unit square) and the more general case is shown in figs 4a and 4b

Fig 4a The triangle has been skewed and it is seen that the base is twice the dimension of the companion rectangle.

Fig 4b compacts the base by 2x and stretches the altitude by 2X leaving the area of the triangle unchanged and it is now seen to have an area of 1/2 the rectangle.

Q.E.D. (I hope)

Score 1 for Good Answer
4
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 1539
Good Answers: 41
#130
In reply to #129

Re: Area Calculations: CR4 Challenge (07/14/09)

07/22/2009 3:04 AM

Thanks: that's great, but "proving" the 4a/4b part for general case is nearly as arithmetically challenging as the original problem. But I think you've nudged me in the right direction:-

The magenta triangle skews to the red triangle and the cyan one skews to the blue.

__________________
The early bird catches the worm, but, look what happens to the early worm: Alfred E. Neuman
Good Answer (Score 4)
Power-User

Join Date: May 2008
Posts: 103
Good Answers: 6
#131
In reply to #130

Re: Area Calculations: CR4 Challenge (07/14/09)

07/22/2009 8:55 AM

Elegant!

Guru

Join Date: Apr 2007
Posts: 3298
Good Answers: 56
#132
In reply to #131

Re: Area Calculations: CR4 Challenge (07/14/09)

07/22/2009 11:23 AM

Give him a GA then (I already did, even though it is not precisely on topic)

Off Topic (Score 5)
Page 1 of 2: « First 1 2 Next > Last »
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Comments rated to be Good Answers:

These comments received enough positive ratings to make them "good answers".

Comments rated to be "almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, rate them!
Copy to Clipboard

Users who posted comments:

3Doug (2), ahuha (1), Anonymous Hero (1), chrisg288 (6), Del the cat (6), edignan (1), Guest (9), Haajee (2), Hendrik (9), jim35848 (5), JohnDG (1), Kenneth Leigh (5), Kinsale (2), Kris (34), OldTechNewToys (1), phoenix911 (1), Physicist? (27), Randall (12), RcEe (1), RVZ717 (1), SlideRuler (7), Stedou73ish (1), stevem (1), tcmtech (1), TeeSquare (7), TVP45 (8), U NO WHO (1), WilhelmHKoen (4), zodiac (1)

Previous in Blog: Car Brakes: CR4 Newsletter Challenge (07/07/09)   Next in Blog: The Winning Team: CR4 Challenge (07/21/09)
You might be interested in: Surface Profilometers, Multi-screen Display Controllers, Video Cable Assemblies