0
$\begingroup$

Let $f=ax^2+b$ be a polynomial in $Q[x]$, how to define $f$ in sage?

1 Answers 1

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.