I have a right triangular pyramid, and I need to calculate an angle at its apex.

(more precisely, the angles between the edges that join the apex to the vertices at the base that define the hypotenuse of the base)

(ie the angle that spans the hypotenuse of the base)

The apex is directly above the right angle of the base.

Therefore, all three of the angles at the vertix below the apex are right angles.

I know the other two angles at the apex, I just need the angle that spans the hypotenuse of the base.

It should be fairly simple, but my calculations fall short. More importantly, whilst I will summarise my efforts below, I feel there should be a simpler way of calculating this angle.

I initially tried assigning an arbritrary value (x, say) to the length between the apex and the right angle.

This length forms a shared side of two right angle triangles. Using SOHCAHTOA, I calculated all the lengths of these triangles.

I then used pythagoras' theorem to calculate the hypotenuse of the base.

Finally, looking at the triangle formed by the three hypotenuses, I used the cosine rule to calculate the angle spanning the base hypotenuse.

I think my logic is sound but doubtless I've made some mistake somewhere. More importantly, as I say, surely there's a simpler formula for calculating this angle based purely on the other two angles of the apex.