Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the formula for converting volume to area?

Status
Not open for further replies.

jackz15

Programmer
Joined
Jun 28, 2006
Messages
103
Location
US
i'd like to know this so i can implement it into my calc; assuming that once the substance of that much volume is spilled miracuously into a perfect square with length x and width x, and thickness of y. How can i determine x squared(the area of the volume of substance once spilled).
 
$area=$x**2 unless the gravitational pull is less than you'd like to quote, $area=$x**2, but $y just got a lot taller, and $x became laterally diminished (in at least one direction) ;-)

Now what was your question? I think we need to know the original volume (oh, and pressure, oh, and gravitational force, and believe it or not, Boyle would have my ass for this, the temperature)

If you phrase a question 'better', we can help 'better'




Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
are you trying to figure out the total surface area of the spill given the shape of the spill (a rectangle in this instance).

$L = 20;
$W = 30;
$H = 10;

$Surface = (2*$L*$H) + (2*$L*$W) + (2*$W*$H);

or:

$Surface = (($L*$H)+($L*$W)+($W*$H))*2;
 
Assuming you already know y, then the calculation is
Code:
my $area = $volume / $y;
my $x = sqrt($area);

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::PerlDesignPatterns)[/small]
 
ok sorry took so long to respond, i had already figured it out. thanks for the responses though
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top