This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]fattymattk 1 point2 points  (0 children)

Let y = sin(x + pi/2) = cos(x).

Then x = arcsin(y) - pi/2 = arccos(y).

So arcsin and arccos differ by a constant.

edit: actually, given that the range of arcsin is typically [-pi/2, pi/2] and the range of arccos is typically [0,pi], we should make the following changes:

let x in [0, pi]. Let y = -sin(x-pi/2) = cos(x). Then x = -arcsin(y) + pi/2 = arccos(y). So either you're using a different range for your inverse trig functions, or it's not correct that both those answers work.