+ Reply to Thread
Results 1 to 5 of 5

Create arcTan function

  1. #1
    Registered User
    Join Date
    06-01-2005
    Posts
    7

    Create arcTan function

    Hello,

    How can I create a ARCTAN (TAN-1) function in VBA?

    Thanks

  2. #2
    Dave Peterson
    Guest

    Re: Create arcTan function

    ATAN()

    Tadashii wrote:
    >
    > Hello,
    >
    > How can I create a ARCTAN (TAN-1) function in VBA?
    >
    > Thanks
    >
    > --
    > Tadashii
    > ------------------------------------------------------------------------
    > Tadashii's Profile: http://www.excelforum.com/member.php...o&userid=23918
    > View this thread: http://www.excelforum.com/showthread...hreadid=501675


    --

    Dave Peterson

  3. #3
    Edward Ulle
    Guest

    Re: Create arcTan function

    Tadashii,

    In the VB editor goto help and type in Derived and goto Derived Math
    Function. There is a list of useful equations.

    For arc or cotangent you could do the following.

    Public Function Arctangent(dblValue as Double) As Double
    Arctangent = 1# / Tan(dblValue)
    End Function

    Then in your code to call Arctangent.

    dblATan = Arctangent(dblValue)

    *** Sent via Developersdex http://www.developersdex.com ***

  4. #4
    Tom Ogilvy
    Guest

    Re: Create arcTan function

    Use the built in Arttan function??

    from Excel VBA help:

    Atn Function
    Returns a Double specifying the arctangent of a number.

    ----------------------------------------------

    See help for details

    --

    Regards,

    Tom Ogilvy



    "Tadashii" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello,
    >
    > How can I create a ARCTAN (TAN-1) function in VBA?
    >
    > Thanks
    >
    >
    > --
    > Tadashii
    > ------------------------------------------------------------------------
    > Tadashii's Profile:

    http://www.excelforum.com/member.php...o&userid=23918
    > View this thread: http://www.excelforum.com/showthread...hreadid=501675
    >




  5. #5
    Registered User
    Join Date
    06-01-2005
    Posts
    7
    thanks for the info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1