What you need to calculate is the distande BC, right? AC² - AB² = BC² (Pythagorean theorem) which means: BC is the square root of (AC² - AB²) No need to involve trigonometry when you're dealing with lengths in a right triangle. (Of course AB must always be less than AC.)
Mårten
