Need help - Time for some maths!


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1

    Default Need help - Time for some maths!

    Hi, I would like to know if there is any way I can calculate values like Sin (or sin-1) or Cos (or cos-1) in degrees or radians if possible in PBP.
    As always, thanks in advance.
    ___________________
    WHY things get boring when they work just fine?

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Need help - Time for some maths!

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Need help - Time for some maths!

    ' There is no arcsine. Brad circles are 256 units. The radius 127. The Hypotenuse squared 16129.

    ' X = SQR ( H * H - Y * Y ) same as Cosine = SQR( 16129 - Sine * Sine ). Angle = Arctangent Sine/Cosine

    ' Altitude brad angle = arctangent (Y/X) X ATN Y

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: Need help - Time for some maths!

    Ok, I had too many imodiums by now.

    I am going to explain what I am planning to do, so any suggestion will be appreciated.
    My project requires me to calculate power factor of an inductive load. I am thinking of getting the values for V & I from the hall effect sensors.
    I am still struggling to know how to get value for real power. Once I have these three values, I can calculate the power factor. Now suppose I get the power factor to be 0.4.

    How do I calculate Cos-1(0.4) or Sin-1(0.4)? A little starting point with the code will go a long way. Thanks
    ___________________
    WHY things get boring when they work just fine?

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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