Question: How do I substitute a value into a polynomial in GAP?
So, if I start off with the following:
x:=Indeterminate(Integers,"x");
f:=x^2+3;
I have $f$ as the polynomial $x^2+3$ over the integers. How can I find, say, $f(100)$?
There should be a simple one line answer, but I can't seem to find it in the help files.
Please see '?Value':
Similarly, for multivariate polynomials do:
Remark (added later): furthermore, substitution is not limited to the elements of the ring of coefficients. One could, for example, substitute indeterminates like here
or matrices like here: