Function: math[_Zval] - transform an expression containing _Zn's into a sequence of values

Calling Sequence:

_Zval(expr, r);

Parameters:

expr - an expression or list or set of expressions containing the name _Z n , where n is a posint

r - a range of type realcons .. realcons

Description:

With trigonometric expressions, solve returns a general solution including the names _Z1, _Z2, etc., which are placeholders for integers, if _EnvAllSolutions has been set true. By passing this general solution expr and a range r, r specifying an interval x1 .. x2, _Zval transforms this expression into a sequence of values which lie in the interval [x1, x2].

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, _Zval).

Examples:

> with(math, _Zval):

> _EnvAllSolutions := true:

> sol1 := solve(cos(x)=0, x);

[Maple Math]

> _Zval(sol1, -3*Pi .. 3*Pi);

[Maple Math]

> evalf(%);

[Maple Math]

> sol2 := solve(sin(x)*cos(x)=0, x);

[Maple Math]

> _Zval({sol2}, -10 .. 10);

[Maple Math]

See Also:

solve .

Version History:

Version 1.0 as of January 02, 1998

Version 1.1 as of February 14, 1998