How to do arcsine with Pic Basic Pro?


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322

    Default How to do arcsine with Pic Basic Pro?

    Hi All!
    I think maybe I was asleep when this was discussed and to be honest most Google answer seem very confusing! What I would like to do is try to write a program in Pic Basic only this time since the caculation results can be either + or - maybe try a program using "longs"? The results I got from trying to other programs for the Memsic 2125 leave a lot to be desired when it come to accruacy. I know it is possible to accurately measure tilt as I bought Pittsburgh Digital Angle Gauge (Item 95998) at Harbor Freight and Tool. Where I am completely stuck is that there does not seem to be a way in Pic Basic to caculate ARCSINE! Since I really do not understand the math that well I am wondering if arcsine can be determined from the Pic Basic math funtion of "sin"? Thanks to all, Ed!

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


    Did you find this post helpful? Yes | No

    Default Re: How to do arcsine with Pic Basic Pro?

    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Mar 2011
    Location
    Los Angeles, California
    Posts
    322


    Did you find this post helpful? Yes | No

    Default Re: How to do arcsine with Pic Basic Pro?

    Thanks Dave and I must be either incredibly dense or just plain stupid as I still do not understand. At first glance it looks like tables rather than a math formula? Is there an actual formula for arcsine?

  4. #4
    Join Date
    Feb 2011
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: How to do arcsine with Pic Basic Pro?

    COS = SQR(16129 - SIN^2)

    ANGLE= COS ATN SIN

    COS & SIN ARE BRAD NUMBERS HERE, NOT FUNCTIONS
    TWO SOLUTIONS -- COS COULD BE POSITIVE OR NEGATIVE.

    http://www.harbornet.com/sunflower/sunrun.pbp

    SEARCH FOR -- Get_Path:

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