PDA

View Full Version : Looking for equations


XodoX
Mar1-09, 06:46 PM
Hello guys!

I'm looking for some equations I need for a program I have to create.

In the mid-west many farmers irrigate from a well near
the center of a piece of land using a circular
irrigation system. The farmer plans on farming an
almost square (but it is a rectangle) piece of
property and needs to know some answers for planning.

This program is to get two measurements for a rectangular
piece of property. The measurements will be in feet,
and should be identified with variables named length
width. The program is to calculate the area in square
feet of the rectangle and the largest circle that could
fit into the rectangle.

The farmer wants to know the acreage of:

1. the property
2. the farmable area
3. the non-farmable area

The rectangular area is easy.. side a x b. How do I get the equation for how many circles could fit in the rectangular area?

flatmaster
Mar1-09, 07:52 PM
THis dosen't seem so bad.

Total area = W*L
The biggest circle is of radius Min[W.L]/2
Where the Min function picks the smaller number. THat gives.
Pi(Min[W.L]/2)^2 area of farmable land.

flatmaster
Mar1-09, 07:54 PM
And you want to put more circles in? Well you would slam that largest circle up against one side.