### Random Post

### Recent Posts

### Recent Comments

### Archives

### Categories

- article (11)
- enigma (1,393)
- misc (4)
- project euler (2)
- puzzle (90)
- puzzle# (61)
- site news (62)
- tantalizer (105)
- teaser (7)
- today (1)

### Site Stats

- 244,212 hits

Programming Enigma Puzzles

29 May 2020

Posted by on **From New Scientist #2113, 20th December 1997** [link]

In George’s small home town there are three churches, equidistant from each other as the crow flies — that is to say, the stand at the vertices of an equilateral triangle. George is standing exactly 1 mile in a straight line from one church, 5/8 mile from the second and just 3/8 mile from the third.

Exactly how far apart are the churches from each other?

[enigma958]

%d bloggers like this:

See:

Enigma 278.If George’s distances from the churches are

a, b, c, and the churches are a distancesfrom each other, we have:In this case, if we work in units of 1/8 miles, we have:

a = 8, b = 5, c = 3, and writingx = s²:Solution:The distance between the churches in 7/8 miles.Here is a short program that uses the equation given above and the [[

`quadratic()`

]] function fromenigma.pyto solve the puzzle:Run:[ @repl.it ]