Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    330
    Thanks
    10
    Thanked 0 Times in 0 Posts
    This is making my brain hurt

    cot A = b * pi / c

    j = Pc * cos A * 0.3183

    I have Pc, b and c and in these calculations A is degrees. As vb uses radians how does this need to be written to get value j?
    "Heading for the deep end"

  2. #2
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    330
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Can someone help with this then?

    Cot A = 1/Tan A = B

    I have B, what do I do to it to get A? (in radians)

    I need A in radians to then put it into the second equation above to get J

    A= 0.090757121103705 Radians

    Cot A = 1/System.Math.Tan(0.090757121103705) = 10.9881501380931
    "Heading for the deep end"

  3. #3
    Star Lounger
    Join Date
    Mar 2010
    Location
    Winston-Salem, NC USA
    Posts
    69
    Thanks
    12
    Thanked 4 Times in 4 Posts
    Here's a couple of functions that may be helpful.

    Private Function PI() As Double
    'Returns 3.14159265358979
    'If using a calculator, set the mode to Radians.
    PI = Atn(1) * 4
    End Function

    Private Function DegreesToRadians(dblDegrees As Double) As Double

    DegreesToRadians = dblDegrees * (PI / 180)

    End Function

    Private Function RadiansToDegrees(dblRadians As Double) As Double

    RadiansToDegrees = dblRadians * (180 / PI)

    End Function
    Do your part!!! Report SPAM to http://www.spamcop.net/

Posting Permissions

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