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
4 years ago
Get the weekly newsletter! In it, you'll get:
see an example newsletter