xname - Maple Help

geom3d

 xname
 find the name of the x-axis used to define an object
 yname
 find the name of the y-axis used to define an object
 zname
 find the name of the z-axis used to define an object

 Calling Sequence xname(obj) yname(obj) zname(obj)

Parameters

 obj - a plane, a sphere

Description

 • The routine xname returns the name of the x-axis used to define obj.  It returns either a name or FAIL.
 • The routine yname returns the name of the y-axis used to define obj.  It returns either a name or FAIL.
 • The routine zname returns the name of the z-axis used to define obj.  It returns either a name or FAIL.
 • The command with(geom3d,xname) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{geom3d}\right):$

Define the plane from three given points A, B, C

 > $\mathrm{point}\left(A,0,0,0\right),\mathrm{point}\left(B,1,1,11\right),\mathrm{point}\left(C,3,7,5\right):$
 > $\mathrm{plane}\left(p,\left[A,B,C\right]\right)$
 ${p}$ (1)
 > $\mathrm{detail}\left(p\right)$
 $\begin{array}{ll}{\text{name of the object}}& {p}\\ {\text{form of the object}}& {\mathrm{plane3d}}\\ {\text{equation of the plane}}& {-}{72}{}{\mathrm{_x}}{+}{28}{}{\mathrm{_y}}{+}{4}{}{\mathrm{_z}}{=}{0}\end{array}$ (2)
 > $\mathrm{xname}\left(p\right)$
 ${\mathrm{FAIL}}$ (3)

As you might notice, the axes do not have names yet. The command Equation provides you with a chance to name the axes.

When you execute this command, a dialog box appears.  Enter a, b, and c for the names of the axes.

 > $\mathrm{Equation}\left(p\right)$
 ${-}{72}{}{a}{+}{28}{}{b}{+}{4}{}{c}{=}{0}$ (4)

 > $\mathrm{xname}\left(p\right);$$\mathrm{yname}\left(p\right);$$\mathrm{zname}\left(p\right)$
 ${a}$
 ${b}$
 ${c}$ (5)
 > $\mathrm{detail}\left(p\right)$
 $\begin{array}{ll}{\text{name of the object}}& {p}\\ {\text{form of the object}}& {\mathrm{plane3d}}\\ {\text{equation of the plane}}& {-}{72}{}{a}{+}{28}{}{b}{+}{4}{}{c}{=}{0}\end{array}$ (6)