Ticket #9054: trac_9054_review_fixup.2.patch

File trac_9054_review_fixup.2.patch, 2.1 KB (added by saraedum, 10 years ago)

fixes for function fields related to the review comments by mderickx

• sage/rings/function_field/function_field.py

# HG changeset patch
# User Julian Rueth <julian.rueth@gmail.com>
Trac 9054: fixes for function fields related to the review comments by mderickx

diff --git a/sage/rings/function_field/function_field.py b/sage/rings/function_field/function_field.py
index 7cf9a0e..29ab6ae 100644
 a class FunctionField(Field): sage: False in [e in K for e in elements] False """ return [self.random_element()] return [self.random_element(), self.random_element(), self.random_element()] def characteristic(self): """ class FunctionField_polymod(FunctionField): from maps import MapVectorSpaceToFunctionField, MapFunctionFieldToVectorSpace from_V = MapVectorSpaceToFunctionField(V, self) to_V   = MapFunctionFieldToVectorSpace(self, V) self._vector_space = (V, from_V, to_V) return self._vector_space return (V, from_V, to_V) def maximal_order(self): """ class RationalFunctionField(FunctionField): from maps import MapVectorSpaceToFunctionField, MapFunctionFieldToVectorSpace from_V = MapVectorSpaceToFunctionField(V, self) to_V   = MapFunctionFieldToVectorSpace(self, V) self._vector_space = (V, from_V, to_V) return self._vector_space return (V, from_V, to_V) def random_element(self, *args, **kwds): """
• sage/rings/function_field/function_field_order.py

diff --git a/sage/rings/function_field/function_field_order.py b/sage/rings/function_field/function_field_order.py