Plz also teel how it is used in C++

Recommended Answers

All 4 Replies

asin() in <cmath>
Try here for a description.

asin() in <cmath>
Try here for a description.

Yeah that's truly right !

You just use it like the sin function ...

>>You just use it like the sin function ...
Caution!! the Domain of arcsine function is from [-1.1]. I suppose the OP would be aware of this since he is dealing with it.
Also, return value is the principal value: -pi/2 to +pi/2

PS: I know all this must be in the reference of the asin given by Nucleon but I was cautioning since it was pointed "use as you use sine".

>>> You can use it like the sin function

I said that because the function prototypes of the sin and asin function are the same ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.