cos inverse???

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
jupiter777
New poster
Posts: 8
Joined: Sun Mar 30, 2003 9:44 pm
Location: bangladesh

cos inverse???

Post by jupiter777 »

how can i measure the inverse of cosine in C++ language in a program??????????????[cpp][/cpp]
kmhasan
Problemsetter
Posts: 107
Joined: Fri Oct 26, 2001 2:00 am
Location: Canada
Contact:

Post by kmhasan »

I believe you can use the acos function if you include math.h
jupiter777
New poster
Posts: 8
Joined: Sun Mar 30, 2003 9:44 pm
Location: bangladesh

Post by jupiter777 »

but as i know acos is used for finding out the cosine.
can it measures the inverse cosine???????????
such as::
a=cos^-1(b);
kmhasan
Problemsetter
Posts: 107
Joined: Fri Oct 26, 2001 2:00 am
Location: Canada
Contact:

Post by kmhasan »

No. cos finds the cosine, and acos finds the arc cosine which is the cos inverse.

Here, have a look at this url. This should clear out the confusion:
http://www.cs.utah.edu/dept/old/texinfo ... tml#SEC292
Post Reply

Return to “C++”