Eval
evaluate an expression
Calling Sequence
Parameters
Description
Examples
Eval(a, x=n)
ax=n|ax=n
Eval(a, {x1=n1, x2=n2, ...})
a
-
expression
x, x1, x2, ...
names
n, n1, n2, ...
evaluation points
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.
Eval⁡x7+x+1,x=1
x7+x+1x=1|x7+x+1x=1
value⁡
3
Eval⁡x2+y,x=3,y=2mod5
1
alias⁡α=RootOf⁡x4+x+1:
a≔x4+α⁢x2+1
Eval⁡a,x=αmod5
α3+4⁢α
Eval⁡int⁡f⁡x,x,x=y
∫f⁡xⅆxx=y|∫f⁡xⅆxx=y
Eval⁡Matrix⁡x2+y,x=3,y=2mod5
See Also
eval
modp1
Powmod
subs
value
Download Help Document