Vb 6.0 and Trigonometric functions

Is the Acos() trig function supported in VB 6.0? I have written a function to return the angle in radians, subtended at the centre of a cylinder lying on its side by the liquid in that cylinder.
What i am doing is calculating the volume of liquid in a cylindrical tank that is lying on its side.
I have managed to fumulate the intergral equation for this and have translated it into VB .NET code, but need to do the same in VB 6.0, which is where the whole project is!

• These web pages have some functions written for VB6, that solve the problem:

http://www.devx.com/vb2themax/Tip/19024
http://www.devx.com/vb2themax/Tip/19026
• [b][red]This message was edited by DrMarten at 2006-8-2 2:52:47[/red][/b][hr]

Hi,

Other than a ball or sphere whose volume is (4/3) * PI * (r^3)

think of a regular shape in an object and extend it along or around.

E.G.

A cylinder's volume is PI*(r^2) for the circular end area then multiplied by the height ( or in your case the length ) of the cylinder.
______________________________________________________________________

For a cone think of a triangle from centre of the circular end to the tip of the cone extended to the circumference. If rotated around the centre you get the volume.
So a cone then is PI*diameter to get the circumference * ( area of triangle or (0.5 * radius * height of cone) giving>>

I'll let you look up any other's you might want.

Regards,

Dr M.

[b]
[blue]
P.S.
Talking of TRIG functions and other ideas, i know how to PLOT the following shapes using TRIG with any number of points.>>

CIRCLE, Regular or elliptical STAR,
CONE, ELLIPTICAL CONE,
CYLINDER, Tapered cylinder,
ELLIPSE,

A Diagonal Ellipse at any angle!!

Clockwise or anti-clockwise spirals with any given number of rotations,
at any angle and even elliptical spirals.
A SHELL shape,
any regular or elliptical POLYGON like an OCTAGON (8 sides),
and the moving laser patterns you may have seen known as
Lissajous figures.

If you want to know, just ask. :-)

[/blue]
[/b]

• : [b]
: [blue]
: Talking of TRIG functions and other ideas, i know how to PLOT the following shapes using TRIG with any number of points.>>
:
: CIRCLE, Regular or elliptical STAR,
: CONE, ELLIPTICAL CONE,
: CYLINDER, Tapered cylinder,
: ELLIPSE,
:
: A Diagonal Ellipse at any angle!!
:
: Clockwise or anti-clockwise spirals with any given number of rotations,
: at any angle and even elliptical spirals.
: A SHELL shape,
: any regular or elliptical POLYGON like an OCTAGON (8 sides),
: and the moving laser patterns you may have seen known as
: Lissajous figures.
:
: If you want to know, just ask. :-)[/blue][/b]

I'm game!
:
: