ApasScript.

Conic Sections

parabola

The parabola y^2 = 4ax (opening right), or opening "left", "up" or "down", optionally with its vertex moved.

hyperbola

The hyperbola (x - h)^2/a^2 - (y - k)^2/b^2 = 1.

rectHyperbola

The rectangular hyperbola (x - h)(y - k) = c^2.

conic

The general conic ax^2 + bxy + cy^2 + dx + ey + f = 0.

conicType

What a general conic is: circle, ellipse, parabola, hyperbola, rectangular hyperbola, pair of lines.

discriminant

The discriminant b^2 - 4ac of a general conic.

focus

The focus of a parabola.

foci

The two foci of an ellipse or hyperbola, as a list -- exact (a surd when irrational).

directrix

The directrix of a parabola.

axis

The axis of symmetry of a parabola.

latusRectum

The latus rectum of a parabola, as a line.

latusRectumLength

The length of the latus rectum of a parabola, ellipse or hyperbola.

eccentricity

The eccentricity of an ellipse or hyperbola, exact.

vertices

The two vertices of an ellipse or hyperbola, as a list.

coVertices

The two co-vertices (ends of the minor axis) of an ellipse.

majorAxis

The line of an ellipse's major axis.

minorAxis

The line of an ellipse's minor axis.

auxiliaryCircle

The auxiliary circle of an ellipse (radius = semi-major axis).

directorCircle

The director circle of an ellipse (radius^2 = a^2 + b^2).

asymptotes

The two asymptotes of a hyperbola, as a list of lines.

normalAt

The normal line to a parabola, ellipse or hyperbola at a point on it.

chordOfContact

The chord of contact of the tangents from an external point to a parabola, ellipse or hyperbola.

isTangent

True if a line touches an ellipse or hyperbola.

conicCenter

The centre of a general conic, or text if it has none (a parabola).

conicShift

The conic moved so its centre is at the origin (the linear terms vanish).