Geometry
Internal Common Tangent
Length of a common internal tangent of two circles.
The circles have radii 5 and 3, and their centers are 10 apart. The internal common-tangent length is √[d² − (r1 + r2)²] = 6.
An external tangent keeps both centers on the same side of the line. An internal tangent puts the centers on opposite sides, which is why the radii are added inside the square root. A zero result is a real touch, not an error. A negative value under the square root means that tangent does not exist, and the circles are drawn without it.
Equation
common_tangent_internal(r1=5, r2=3, d=10)
Lengths and tangents
Geometry examples state objects and a relationship, then DGS draws the figure and reports the measurement. A distance is the length of the segment between two points. A common tangent is a line that touches two circles, either externally or internally.
The drawing is there so the algebra has a picture. Lengths that come out as perfect squares stay exact. Other lengths keep a radical when the engine can simplify one, plus a decimal. Editing a coordinate or a radius is the fastest way to see which part of the formula changed.
Reading the input
common_tangent_internal(r1=5, r2=3, d=10)— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
Try a change
- Edit one number in the field, then use Generate Graph. The studio opens on the homepage with the edited text and runs it.
- Use Open in DGS Studio when you want the expression loaded but not run yet.
Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.