Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: iago on November 26, 2003, 08:05 PM

Title: Quick question re: C math functions
Post by: iago on November 26, 2003, 08:05 PM
What's the C functions for arcsin, arccos, arctan, and ln?

Thanks!
-iago

Edit: better subject
Title: Re:Quick question re: C math functions
Post by: Eibro on November 26, 2003, 08:41 PM
atan acos asin etc..
http://www.cplusplus.com/ref/cmath/index.html
Title: Re:Quick question re: C math functions
Post by: iago on November 26, 2003, 08:43 PM
Aha, thanks! :)
Title: Re:Quick question re: C math functions
Post by: iago on November 26, 2003, 08:47 PM
eww, ln is log, and log is log10.  It makes sense, but it's still eww :)
Title: Re:Quick question re: C math functions
Post by: Yoni on November 27, 2003, 07:53 AM
Quote from: iago on November 26, 2003, 08:47 PM
eww, ln is log, and log is log10.  It makes sense, but it's still eww :)
If this were the math forum I'd comment that e >>>>> 10 but it isn't (oops, I commented anyway).
Title: Re:Quick question re: C math functions
Post by: iago on November 27, 2003, 09:39 AM
Isn't e =~ 2.1?
Title: Re:Quick question re: C math functions
Post by: Yoni on November 27, 2003, 12:55 PM
Quote from: iago on November 27, 2003, 09:39 AM
Isn't e =~ 2.1?
CHO DIE

e = ~2.7182818284590452353602874713489
Title: Re:Quick question re: C math functions
Post by: iago on November 27, 2003, 02:19 PM
Quote from: Yoni on November 27, 2003, 12:55 PM
Quote from: iago on November 27, 2003, 09:39 AM
Isn't e =~ 2.1?
CHO DIE

e = ~2.7182818284590452353602874713489

But e !>>>>>>> 10!
Title: Re:Quick question re: C math functions
Post by: Yoni on November 27, 2003, 02:22 PM
e is much greater than 10 spiritually.
Title: Re:Quick question re: C math functions
Post by: iago on November 27, 2003, 04:02 PM
Aha, you mean more useful!

I meant that 2.7 < 10 :P