plottools
hyperbola
generate 2-D plot object for a hyperbola
Calling Sequence
Parameters
Description
Examples
hyperbola(c, a, b, r, options)
c
-
center of symmetry
a, b
a^2+b^2=e^2, where e is the eccentricity
r
range
options
(optional) equations of the form option=value. For a complete list, see plot/options.
The hyperbola command creates a two-dimensional plot data object, which when displayed is a hyperbola whose center of symmetry is at point c, with a2+b2=e2, where e is the eccentricity. For instance, hyperbola([x0, y0], a, b, r1..r2) graphs the equation
x−x02a2−y−y02b2=1
from the point x0+acoshr1,y0+bsinhr1 to x0+acoshr2,y0+bsinhr2 and from x0−acoshr1,y0−bsinhr1 to x0−acoshr2,y0−bsinhr2.
A call to hyperbola produces a plot data object that can be used in a PLOT data structure, or displayed using the plots[display] command.
Remaining arguments are interpreted as options, which are specified as equations of the form option = value. For more information, see plottools and plot/options.
withplottools:
withplots:
eq≔x−x02a2−y−y02b2=1
a≔1:b≔1:x0≔0:y0≔0:
Generate the hyperbola described by the equation above,
h≔hyperbolax0,y0,a,b,−2..2:
displayh
which is equivalent to:
implicitploteq,x=−4..4,y=−4..4
Other forms of hyperbola can be obtained via object transformations, for example, rotate.
displayrotateh,π2,rotateh,π4,rotateh,3π4
See Also
plot/options
plot/structure
plots[display]
plots[implicitplot]
plottools[rotate]
Download Help Document