Vb 6.0 and Trigonometric functions - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Vb 6.0 and Trigonometric functions

GyronMkweboGyronMkwebo Posts: 224Member ✭✭
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!
Any help please.

Comments

  • iwilld0itiwilld0it Posts: 1,134Member
    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
  • DrMartenDrMarten Posts: 748Member
    [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>>

    Pi*diameter*0.5*radius*heightOfCone for it's volume.

    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]

  • kern68kern68 Posts: 85Member
    : [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!
    :
    :
Sign In or Register to comment.