File: h_geom.e
Created: 17th/Dec/2003
Author: Hayden McKay
E-Mail: hmck1@dodo.com.au
h_geom.e
Function Descriptions:
area: Calculate the area of a parallel plain.
x_area: Calculate the length of a side given the area of a parallel plain.
circ_area: Calculate the area of a circle given its radius.
cb_area: Calculate the area of a parallel prism.
sp_area: Calculate the area of a sphere given its radius.
cl_area: Calculate the area of a cylinder given its radius and hight.
hcl_area: Calculate the area of a hollow cylinder given its radius & hight.
volume: Calculate the volume of a parallel prism given its length, width & depth.
x_volume: Calculate length of a side given the volume & two sides of a parallel prism.
sp_volume: Calculate the volume of a sphere given its radius.
pm_volume: Calculate the volume of a pyramid given its base area & hight.
cl_volume: Calculate the volume of a cylinder given its radius and hight.
cn_volume: Calculate the volume of a cone given its area of base & hight.
Licence & Disclaimer
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to not alter it and redistribute it
freely in any way, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software or remove the original
authors' names.
2. Altered source versions are not permitted as such, and must not
be misrepresented as being the original software.
3. All software distributions, without modifications, must be
distributed under this license. And any later versions, in which case,
you should replace this notice with an appropriate one.
If this software is distributed as part of a larger product,
this item does not apply to the rest of the product.
4. If you use this software in a product, an acknowledgment in the
product documentation is required. If the software for the product
is not freely distributed, you must include information on how to
freely obtain the original software.
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
If you want to distribute this software in a way not allowed by this
license, or distribute the software under different license terms, contact
the authors for permission.
Functions
object = area(sequence {length,width})
Calculate the area of a parallel plain.
Returns the area, -1 on fail.
atom = x_area(atom number)
Calculate the length of a side given the area of a parallel plain.
Returns a length.
atom = circ_area(atom radius)
Calculate the area of a circle given its radius.
Returns the area.
object = cb_area({length,width,depth})
Calculate the area of a parallel prism.
Returns the area, -1 on fail.
atom = sp_area(atom radius)
Calculate the area of a sphere given its radius.
Returns the area.
object = cl_area(sequence {radius,hight})
Calculate the area of a cylinder given its radius and hight.
Returns the volume, -1 on fail.
object = hcl_area(sequence {radius,hight})
Calculate the area of a hollow cylinder given its radius & hight.
Returns the area, -1 on fail.
object = volume(sequence {length,width,depth})
Calculate the volume of a parallel prism given its length,width & depth.
Returns the volume, -1 on fail.
object = x_volume(sequence {volume,side,side})
Calculate length of a side given the volume & two sides of a parallel prism.
Returns the length, -1 on fail.
atom = sp_volume(atom radius)
Calculate the volume of a sphere given its radius.
Returns the volume.
object = pm_volume(sequence {base,hight})
Calculate the volume of a pyramid given its base area & hight.
Returns the volume, -1 on fail.
object = cl_volume(sequence {radius,hight})
Calculate the volume of a cylinder given its radius and hight.
Returns the volume, -1 on fail.
object = cn_volume(sequence {base,hight})
Calculate the volume of a cone given its area of base & hight.
Returns the volume, -1 on fail.