- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 688
 
moving fraction_field method to categories #40213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
b5f125b
              9170f34
              5704802
              e2c0e31
              fc62000
              4bb2320
              7cc1bc5
              2510d16
              859bb34
              56c7f38
              241e2f8
              8ade692
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -2754,7 +2754,7 @@ | |
| sage: L = LazyPowerSeriesRing(Zmod(6), 't') | ||
| sage: TestSuite(L).run(skip=['_test_revert']) | ||
| sage: L = LazyPowerSeriesRing(Zmod(6), 's, t') | ||
| sage: TestSuite(L).run(skip=['_test_revert']) | ||
| 
     | 
||
| sage: L = LazyPowerSeriesRing(QQ['q'], 't') | ||
| sage: TestSuite(L).run(skip='_test_fraction_field') | ||
| 
          
            
          
           | 
    @@ -4194,6 +4194,20 @@ | |
| c = self.base_ring().an_element() | ||
| return self.element_class(self, Stream_exact([], constant=c, order=4)) | ||
| 
     | 
||
| def ngens(self): | ||
| r""" | ||
| Return the number of generators of ``self``. | ||
| 
     | 
||
| This is always 1. | ||
| 
     | 
||
| EXAMPLES:: | ||
| 
     | 
||
| sage: L = LazyDirichletSeriesRing(ZZ, 'z') | ||
| sage: L.ngens() | ||
| 1 | ||
| """ | ||
| return 1 | ||
| 
     | 
||
| 
         
      Comment on lines
    
      +4197
     to 
      +4210
    
   
  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure whether this is a good idea - I don't think the Dirichlet series ring is finitely generated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, no, but you have one generator t somewhere in the code.. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, we don't.  There is a data structure, which we carefully hide - the  Why is adding  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, I am currently investigating the other failures. I had to do that change in Lazy Dirichlet for their fraction field to work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is the failure without my fix There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know under which assumptions  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here is something that causes problems : There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I don't understand. Why is this causing problems? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, this name is transmitted to the fraction field, which then tries to call "ngens", which forces us to add the silly "ngens" method There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So I think for the moment, the simplest way out is just to add the silly method "ngens". I have more difficult issues to fix, in particular something about src/sage/algebras/splitting_algebra.py  | 
||
| def some_elements(self): | ||
| """ | ||
| Return a list of elements of ``self``. | ||
| 
          
            
          
           | 
    ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Symhas a (very naive) implementation of a fraction field, which is actually used (in the lazy code). I missed what's going wrong, sorry.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fractions field of realizations are working fine. What is not working is the interplay between the Sym without realization and the fraction field tests.