Divide a segment in a given ratio

Problem 54 from Altshiller-Court's College Geometry
How to divide a given segment AB internally and externally in a given ratio m:n?[br][br]Slide the slider slowly. Pause to reflect on what is happening, and what it implies.[br]Drag the LARGE points as they appear.

Information: Divide a segment in a given ratio