• Help with vb equation for trig values

    Home » Forums » Developers, developers, developers » DevOps Lounge » Help with vb equation for trig values

    Author
    Topic
    #473156

    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?

    Viewing 1 reply thread
    Author
    Replies
    • #1256020

      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

    • #1257237

      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

    Viewing 1 reply thread
    Reply To: Help with vb equation for trig values

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: