CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Cos inverse

  1. #1
    Join Date
    Mar 2005
    Posts
    30

    Cos inverse

    Hello
    i need a code in C++ to find inverse of cos


    and also i need funtion to convert float to int value
    thanks

  2. #2
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Cos inverse

    Quote Originally Posted by adil56
    Hello
    i need a code in C++ to find inverse of cos


    and also i need funtion to convert float to int value
    thanks

    Use acos() routine from math. and and for conversation: Just cast. For C++ you should use reinterpret_cast<>() casting operator.

    ( Moved Thread ) - No WinAPI question
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  3. #3
    Join Date
    Oct 2000
    Location
    London, England
    Posts
    4,773

    Re: Cos inverse

    To convert float to int you would use static_cast or implicit conversion (but the latter would give you a warning).

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured