I may be wrong, but isn't the side labelled A the hypotenuse? So wouldn't the correct formula involve arcsin, not arctan?

James.