Distance Formula
Distance (-3, -4) to (0, 0)
Distance from the third quadrant back to the origin.
The points are (-3, -4) and (0, 0). The distance is √[(0 − -3)² + (0 − -4)²] = √25, which is 5.
DGS marks the two points, draws the segment when the points are different, and labels the length. A zero length means the same point was entered twice, so there is no segment to draw.
Equation
distance((-3,-4),(0,0))
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
distance((-3,-4),(0,0))— 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.