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.
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?
Dave
Always wear safety glasses while programming.
' 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
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?
Bookmarks