Thread: inverse cosine function?

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    14

    inverse cosine function?

    hey all, i searched the forum for this query but came up with nothing...

    what is the source code for: inverse cosine ?

    Is there any bugs in the function i need to be aware of? i.e. any values that must be positive...

    Thanks for any help in advance.

    Colin.

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    Are you actually asking for the source code or do you just want to know the name of the function that calculates the arccosine?

    The acos function is the function used to determine the arc cosine of a value. It accepts a double argument that is in the range of -1 to +1 (inclusive). It returns a double value. To use it, you should include the <math.h> header.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User Micko's Avatar
    Join Date
    Nov 2003
    Posts
    715
    In case you want to erite your own function (maybe unlikely but...)
    I suggest you read this and just implement it in code!
    Cheers!
    Gotta love the "please fix this for me, but I'm not going to tell you which functions we're allowed to use" posts.
    It's like teaching people to walk by first breaking their legs - muppet teachers! - Salem

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Post your games here...
    By Hammer in forum Game Programming
    Replies: 132
    Last Post: 02-28-2013, 09:29 AM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM