Hand Calculations logo Hand Calculations All help pages ▾

Angle Between Two Lines⚠ unverified

Geometry / Analytic · Acute angle between two lines given their slopes

Labeled diagram for Angle Between Two Lines

Parameters

InputSymbolUnitDefaultDescription
m1m1—1.0Slope of first line
m2m2—0.0Slope of second line
OutputSymbolUnitDescription
thetaθdegreeAngle

The science & history

Understanding the Parameters

How to Calculate

  1. Enter Slope of first line as m1 (default 1.0 dimensionless). Use the unit menu when you need a different unit.
  2. Enter Slope of second line as m2 (default 0.0 dimensionless). Use the unit menu when you need a different unit.
  3. Click Calculate. The card evaluates $\tan\theta=\left|\frac{m_1-m_2}{1+m_1 m_2}\right|$ and shows the result in the declared output unit; Result in (when present) converts that number.

The Science: A Rigorous Derivation (Approaching a Proof)

Analytic geometry replaces figures with equations. A point is a tuple of real numbers; the Euclidean distance is the $2$-norm of their difference. A line $ax+by+c=0$ is a level set of a linear function, so the distance from a point to the line is that function's value divided by the norm of its gradient. Conics are the quadratic curves; completing the square on $x^2+y^2+Dx+Ey+F=0$ yields a circle; $e = c/a$ classifies ellipse ($e<1$), parabola ($e=1$) and hyperbola ($e>1$). Polar coordinates $(r,\theta)$ are the Euclidean plane written in rotationally natural coordinates.

Dimensional check. The declared output unit is degree; ToolBox evaluates the formula in SI (radians internally for every trigonometric call) and python-calc converts to the unit on the card.

History and Development

Related Concepts: Distance 3D, Slope, Point To Line Distance, Circle Radius From General Form, Parabola Latus Rectum, Ellipse Eccentricity, Ellipse Linear Eccentricity, Hyperbola Eccentricity

← Back to the workspace  ·  All help pages  ·  Getting started