Let $f=ax^2+b$ be a polynomial in $Q[x]$, how to define $f$ in sage?
sage: var('a b')
sage: R.<X> = QQ
sage: f = a * X * X + b
X^2*a + b
Univariate Polynomial Ring in X over Rational Field
You can get more information about polynomials in this tutorial here.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
3 years ago