### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,158)
- misc (2)
- project euler (2)
- puzzle (40)
- site news (44)
- tantalizer (42)
- teaser (3)

### Site Stats

- 178,002 hits

Advertisements

Programming Enigma Puzzles

26 April 2014

Posted by on **From New Scientist #2488, 26th February 2005**

A friend asked Joe, a keen rugby player, how high rugby goal posts were. Joe had no idea. So he went to the local club with two gadgets he’d made, one to measure the angle from ground level up to the top of a goal post and the other, a large pair of dividers, to measure distance.

He set the dividers to a standard distance. Then he walked 10 standard distances in a straight line from one goalpost and measured the angle to the top of the post. As a check, he walked on the same distance in the same direction and measured the angle again. Just to be certain his calculation would be correct, he walked on the same distance in the same direction and measured the angle for a third time. In calculating the height of the post Joe was surprised to find that the sum of the three angles equalled one right angle.

What was the height of the goalpost in standard distances?

[enigma1329]

Advertisements

%d bloggers like this:

Here’s a numerical solution using the

find_value()function from theenigma.pylibrary. It runs in 39ms.Solution:The goalposts have a height of 10 standard distances.Analytically we can use the equality:

to derive:

so the sum of the angles in the puzzle is:

and this is 90 degrees, so the second argument to atan() must be zero:

Or you can just plug it into Wolfram Alpha [ http://www.wolframalpha.com/input/?i=arctan%28h%2F10%29+%2B+arctan%28h%2F20%29+%2B+arctan%28h%2F30%29+%3D+90%C2%B0 ].

We can also consider the complex numbers:

where

dis the initial distance from the goalposts, andhis the height of the goalposts.The arguments of these complex numbers are the angles measured, so:

And using the equality:

We see that the complex number:

must have no real component.

The product of the numbers is:

Hence:

So the height of the goalposts is the same as the distance from the goalposts in the first measurement. i.e. 10 standard distances.

Very elegant, as complex number solutions often are in comparison to trig solutions.

The related puzzle that I mentioned has a one line solution using complex numbers:

(3+i)(2+i)=5(1+i)

This reminds me of a related puzzle that I came across a few years ago. Here is a

blog entrythat describes it.This programme finds the goalpost height and the three angles in degrees.