Functions and commands 391
harmonic_division With three points and a variable as arguments, returns four
points that are in a harmonic division. With three lines and a
variable as arguments, returns four lines that are in a
harmonic division.
harmonic_division(Pnt or Line,Pnt or Line,Pnt
or Line,Var)
has Returns 1 if a variable is in an expression, and returns 0
otherwise.
has(Expr,Var)
Example:
has(x+y,x) gives 1
head Returns the first element of a given vector, sequence or string.
head(Vect or Seq or Str)
Example:
head(1,2,3) gives 1
Heaviside Returns the value of the Heaviside function for a given real
(i.e. 1 if x>=0, and 0 if x<0).
Heaviside(Real)
Example:
Heaviside(1) gives 1
hexagon Draws a hexagon of side AB in the plane ABP. The other four
corners of the hexagon are named according to the variables
given in the third, fourth, fifth and sixth arguments.
hexagon(Pnt or Cplx(A),Pnt or
Cplx(B),[Pnt(P)],[Var(C)],[Var(D)],[Var(E)],[
Var(F)])
Example:
hexagon(0,6) draws a regular hexagon whose first two
vertices are at (0, 0) and (6, 0)
homothety Returns a point A1 such that vect(C,A1)=k*vect(C,A).
homothety(Pnt(C),Real(k),Pnt(A))
Example:
homothety(GA,2,GB) creates a dilation centered at
point A that has a scale factor of 2. Each point P on
geometric object B has its image P’ on ray AP such that
AP’=2AP.