evaluate - Maple Help

Online Help

All Products    Maple    MapleSim


Eval

evaluate an expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Eval(a, x=n)

ax=n|ax=n

Eval(a, {x1=n1, x2=n2, ...})

 

Parameters

a

-

expression

x, x1, x2, ...

-

names

n, n1, n2, ...

-

evaluation points

Description

• 

The Eval function is a placeholder for evaluation at a point. The expression a is evaluated at x=n (x1=n1, x2=n2, ... for the multivariate case).

• 

To perform an evaluation of an expression or a polynomial over the rational numbers, use the eval command.

• 

You can enter the command Eval using either the 1-D or 2-D calling sequence. For example, Eval(x^7 + x + 1, x=1) is equivalent to x7+x+1x=1|x7+x+1x=1.

• 

The call Eval(a, x=n) mod p evaluates the polynomial a at x=n modulo p. The polynomial a must be a multivariate polynomial over a finite field. For this calling sequence, a can also be a Matrix or Vector of polynomials.

• 

The call modp1(Eval(a, n), p) evaluates the polynomial a at x=n modulo p where a must be a univariate polynomial in the modp1 representation, with n an integer and p an integer > 1.

Examples

Evalx7+x+1,x=1

x7+x+1x=1|x7+x+1x=1

(1)

value

3

(2)

Evalx2+y,x=3,y=2mod5

1

(3)

aliasα=RootOfx4+x+1:

ax4+αx2+1

ax4+αx2+1

(4)

Evala,x=αmod5

α3+4α

(5)

Evalintfx,x,x=y

fxⅆxx=y|fxⅆxx=y

(6)

EvalMatrixx2+y,x=3,y=2mod5

1

(7)

See Also

eval

modp1

Powmod

subs

value