Let $f=ax^2+b$ be a polynomial in $Q[x]$, how to define $f$ in sage?
How to define a polynomial with abstract coefficients in Sage
0
$\begingroup$
math-software
sagemath
1 Answers
2
sage: var('a b')
(a, b)
sage: R. = QQ[]
sage: f = a * X * X + b
sage: f
X^2*a + b
sage: R
Univariate Polynomial Ring in X over Rational Field
You can get more information about polynomials in this tutorial here.