Eval - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Evaluation : Eval

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, ...)

ax1=n1,x2=n2|ax1=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

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

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

(1)

value

3

(2)

x2+yx=3,y=2|x2+yx=3,y=2mod5

1

(3)

aliasα=RootOfx4+x+1:

ax4+αx2+1

ax4+αx2+1

(4)

ax=α|ax=αmod5

α3+4α

(5)

∫fxⅆxx=y|∫fxⅆxx=y

∫fxⅆxx=y|∫fxⅆxx=y

(6)

Matrixx2+yx=3,y=2|Matrixx2+yx=3,y=2mod5

1

(7)

See Also

eval

modp1

Powmod

subs

value

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam