How to program in the inverse sine function

This is a discussion on How to program in the inverse sine function within the C++ Programming forums, part of the General Programming Boards category; I've got a program that I'm writing at the mo, but need help with the inverse sine function. Is there ...

  1. #1
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    Posts
    154

    Question How to program in the inverse sine function

    I've got a program that I'm writing at the mo, but need help with the inverse sine function. Is there a function that can give you it???
    thanks in advance. Dom

  2. #2
    People Love Me
    Join Date
    Jan 2003
    Posts
    412
    Code:
    #include <math.h>
    float something = asin(x);

  3. #3
    Registered User Kybo_Ren's Avatar
    Join Date
    Sep 2004
    Posts
    136
    Use standard libraries -- don't use <math.h>, use <cmath>

  4. #4
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    And while you're at it, if you use <cmath> I believe the *correct* way of using the function is to prefix it with std::.

    double something = std::asin(x);

    Although, of course, much of the time the code will compile even without the std:: in front or the <cmath>/<math.h> include.. -_-
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  5. #5
    Registered User Kybo_Ren's Avatar
    Join Date
    Sep 2004
    Posts
    136
    It's implied, but I should probably have explicitly said that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  2. Consumer program
    By wise_ron in forum C Programming
    Replies: 11
    Last Post: 09-27-2006, 06:21 AM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. I need help with passing pointers in function calls
    By vien_mti in forum C Programming
    Replies: 3
    Last Post: 04-24-2002, 11:00 AM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 10:51 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21