Functions and commands 385
ellipse With three points (F1, F2, and M) as arguments, draws an
ellipse with foci at F1 and F2 that passes though M. With two
points and a real (F1, F2, and a) as arguments, draws an
ellipse with foci at F1 and F2 that passes through point M such
that MF1+MF2=2a. With one second degree polynomial
p(x,y) as argument, draws the ellipse defined when the
polynomial is set to equal 0.
ellipse(Pnt(F1),Pnt(F2),(Pnt(M) or Real(a))
or
ellipse(p(x,y))
Example:
ellipse(GA,GB,3) draws an ellipse whose foci are
points A and B. For any point P on the ellipse, AP+BP=6.
ELSE Used in programming to introduce the false clause in a
conditional statement.
END Used in programming to end a set of statements that should
be taken as a single statement.
equilateral_
triangle
With three arguments, draws the equilateral triangle ABC of
side AB. With four arguments, draws the equilateral triangle
ABC in the plane ABP.
equilateral_triangle((Pnt(A) or Cplx),(Pnt(B)
or Cplx),[Pnt(P)],[Var(C)])
EVAL Evaluates an expression.
eval(Expr)
evalc Returns an complex expression written in the form
real+i*imag.
evalc(Expr)
Example:
evalc(1/(x+y*i)) returns x/(x^2+y^2)+(i)*(-y)/
(x^2+y^2)
evalf With one argument, returns the numerical evaluation of it.
With a second argument, returns the numerical evaluation of
the first argument with the number of significant figures taken
from the second argument.
evalf(Expr,[Int])
Example:
evalf(2/3) gives 0.666666666667