Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #27220: allow different implementations to have their own differ…
Browse files Browse the repository at this point in the history
…ential classes
  • Loading branch information
BrentBaccala committed Feb 4, 2019
1 parent 6642cfd commit 64a37f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sage/rings/function_field/differential.py
Expand Up @@ -94,7 +94,7 @@ def differential(field, f, t=None):
if t is not None:
t = field(t)

return FunctionFieldDifferential_global(field, f, t)
return field.space_of_differentials().element_class(field, f, t)

class FunctionFieldDifferential(ModuleElement):
"""
Expand Down Expand Up @@ -501,7 +501,7 @@ def _call_(self, v):
"""
field = self.codomain().function_field()
return FunctionFieldDifferential_global(field, field(v._f))
return differential(field, v._f)

class DifferentialMultiplicationAction(Action):
"""
Expand Down Expand Up @@ -581,6 +581,8 @@ class DifferentialsSpace(Parent):
"""
Space of differentials of a function field.
"""
Element = FunctionFieldDifferential_global

def __init__(self, field):
"""
Initialize the space of differentials of the function field.
Expand Down

0 comments on commit 64a37f6

Please sign in to comment.