#################################################################################1#2# (c) Copyright 2010 William Stein3#4# This file is part of PSAGE5#6# PSAGE is free software: you can redistribute it and/or modify7# it under the terms of the GNU General Public License as published by8# the Free Software Foundation, either version 3 of the License, or9# (at your option) any later version.10#11# PSAGE is distributed in the hope that it will be useful,12# but WITHOUT ANY WARRANTY; without even the implied warranty of13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14# GNU General Public License for more details.15#16# You should have received a copy of the GNU General Public License17# along with this program. If not, see <http://www.gnu.org/licenses/>.18#19#################################################################################202122import function_field2324def FunctionField(X, names=None):25"""26Return the function field defined by X.2728INPUT:2930- `X` -- a field; return the function field in one variable over X.3132- ``names`` -- name of variable as a string3334EXAMPLES::3536sage: FunctionField(QQ,'alpha')37Rational function field in alpha over Rational Field38sage: K.<alpha> = FunctionField(GF(7)); K39Rational function field in alpha over Finite Field of size 740"""41return function_field.RationalFunctionField(X, names=names)42434445