Skip to content
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

AsymptoticRing: an_element #19048

Closed
dkrenn opened this issue Aug 17, 2015 · 42 comments
Closed

AsymptoticRing: an_element #19048

dkrenn opened this issue Aug 17, 2015 · 42 comments

Comments

@dkrenn
Copy link
Contributor

dkrenn commented Aug 17, 2015

Implement .an_element and .some_elements.

See also meta-ticket #17601.

Depends on #17716
Depends on #19047
Depends on #19068
Depends on #19319

CC: @behackl

Component: asymptotic expansions

Author: Daniel Krenn

Branch/Commit: 617c593

Reviewer: Benjamin Hackl, Clemens Heuberger

Issue created by migration from https://trac.sagemath.org/ticket/19048

@dkrenn dkrenn added this to the sage-6.9 milestone Aug 17, 2015
@dkrenn
Copy link
Contributor Author

dkrenn commented Aug 17, 2015

Branch: u/dkrenn/asy/an_element

@dkrenn
Copy link
Contributor Author

dkrenn commented Aug 17, 2015

Author: Daniel Krenn

@dkrenn
Copy link
Contributor Author

dkrenn commented Aug 17, 2015

Last 10 new commits:

fbd6c93implement QQ.some_elements()
c486e99Merge branch 'rings/QQ-some-elements' into asy/an_element
0a13882improve doctests of _an_element_
0f7412asome_elements for growth groups
57d1720product_diagonal iterator
fc20bf8improve doctest of term.an_element
2ab534bsome_elements for terms
3e71113_an_element_ and some_elements for asymptotic rings
43fd06ddelete stop-option from some_elements
4f294ceimprove product_diagonal so that input is read only when needed

@dkrenn
Copy link
Contributor Author

dkrenn commented Aug 17, 2015

Commit: 4f294ce

@dkrenn

This comment has been minimized.

@behackl
Copy link
Member

behackl commented Aug 17, 2015

comment:4

I've reviewed your changes, merged the latest asy/asymptoticExpression into this branch and applied a tiny reviewer's patch (somehow, 'exact was pasted where it definitely should not). In principal, everything looks good to me and the doctests pass.

However, do you think that asymptotic_term.py really is the best place for the product_diagonal function? I do understand that it is required as a helper function there -- but nevertheless, from my point of view, the function is sufficiently general so that it could also live, for example, in src/sage/misc/misc.py.

What do you think?


Last 10 new commits:

43fd06ddelete stop-option from some_elements
4f294ceimprove product_diagonal so that input is read only when needed
186ecfcsimplified doctests: removed some unneccessary imports
aa4c647Merge branch 'u/dkrenn/asy/asymptoticExpression' into asy/asymptoticExpression
5911564typo fixed and line break introduced
7aa3e60`QQ` --> `\mathbb{Q}`
3e2a7b3typo fixed
f118772some SEEALSO-blocks added
9354773Merge branch 'asy/asymptoticExpression' into asy/an_element
9c1fc0ecleanup documentation: strange 'exact removed

@behackl
Copy link
Member

behackl commented Aug 17, 2015

Reviewer: Benjamin Hackl

@behackl
Copy link
Member

behackl commented Aug 17, 2015

Changed branch from u/dkrenn/asy/an_element to u/behackl/asy/an_element

@behackl
Copy link
Member

behackl commented Aug 17, 2015

Changed commit from 4f294ce to 9c1fc0e

@dkrenn
Copy link
Contributor Author

dkrenn commented Aug 21, 2015

Changed branch from u/behackl/asy/an_element to u/dkrenn/asy/an_element

@dkrenn
Copy link
Contributor Author

dkrenn commented Aug 21, 2015

Changed commit from 9c1fc0e to 3a44a01

@dkrenn
Copy link
Contributor Author

dkrenn commented Aug 21, 2015

comment:6

Replying to @behackl:

I've reviewed your changes, merged the latest asy/asymptoticExpression into this branch and applied a tiny reviewer's patch (somehow, 'exact was pasted where it definitely should not). In principal, everything looks good to me and the doctests pass.

Thanks.

However, do you think that asymptotic_term.py really is the best place for the product_diagonal function? I do understand that it is required as a helper function there -- but nevertheless, from my point of view, the function is sufficiently general so that it could also live, for example, in src/sage/misc/misc.py.

I would keep it here, as it is needed (at the moment) only here.


Last 10 new commits:

6d01815Merge branch 'asy/asymptoticTerm' into asy/asymptoticExpression
f6c4d80doctests fixed
c7afc80building documentation fixed
9305ca5add . after seealso-lists
50d7166\mathbb{Q} --> \QQ
2f8146ddoctests: add growth_group= and coefficient_ring= to AsymptoticRing(...) generation
6456300minor rewording in docstring
4e7b080Merge branch 'u/dkrenn/asy/asymptoticExpression' into asy/asymptoticExpression and fixed some merge conflicts
ae47bcbMerge remote-tracking branch 'origin/u/behackl/asy/asymptoticExpression' into t/19048/asy/an_element
3a44a01fix imports to make doctests pass

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 9, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

7b8c1a0fixed a conversion issue for terms with coefficient
83f74d3Merge branch 'asy/asymptoticTerm' into asy/asymptoticExpression
1c81c12language oddities fixed
032d8b8Merge branch 'asy/growthGroup' into asy/growthGroup-factory
3a05be7Merge tag '6.9.beta5' into t/17600/asy/growthGroup
58f931dadd asymptotic_expansions index
9d6f2daMerge branch 't/17600/asy/growthGroup' into t/18930/asy/growthGroup-factory
6da5adeMerge branch 't/18930/asy/growthGroup-factory' into t/17715/asy/asymptoticTerm
2c1c39dMerge branch 't/17715/asy/asymptoticTerm' into t/17716/asy/asymptoticExpression
1108cfcMerge branch 't/17716/asy/asymptoticExpression' into t/19048/asy/an_element

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 9, 2015

Changed commit from 3a44a01 to 1108cfc

@dkrenn
Copy link
Contributor Author

dkrenn commented Sep 9, 2015

comment:9

Merged 6.9.beta5

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 16, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

e9ed005fix docstring (:: instead of :)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Sep 16, 2015

Changed commit from 1108cfc to e9ed005

@behackl
Copy link
Member

behackl commented Sep 23, 2015

Changed branch from u/dkrenn/asy/an_element to u/behackl/asy/an_element

@behackl
Copy link
Member

behackl commented Sep 23, 2015

comment:12

Merged positively reviewed dependencies into this branch and fixed a simple conflict.


Last 10 new commits:

17e921fremove sorted_set_by_tuple
7af4b6bremove reverse keyword from shells
a49a20dadd comment in code to make it clear what happens
89b8209change left/right to self/other
1d52f6cadd a note to the set operations methods
3b3b2fbobject --> SageObject
572a95dMerge branch 'asy/mutable-poset' into asy/asymptoticExpression
5f54aecexplicitly forbid coercion from MutablePoset into the AsymptoticRing
4def011Merge branch 'asy/asymptoticExpression' into asy/an_element
7bc65a7base_ring --> base_ring()

@behackl
Copy link
Member

behackl commented Sep 23, 2015

Changed commit from e9ed005 to 7bc65a7

@cheuberg
Copy link
Contributor

Changed reviewer from Benjamin Hackl to Benjamin Hackl, Clemens Heuberger

@cheuberg
Copy link
Contributor

comment:13

Perhaps the name product_diagonal could be changed to refer to the Cantor pairing function?

There is a module on multidimensional enumeration, but apparently, it only deals with finite iterators.

@dkrenn
Copy link
Contributor Author

dkrenn commented Sep 30, 2015

comment:14

Replying to @cheuberg:

Perhaps the name product_diagonal could be changed to refer to the Cantor pairing function?

There is a module on multidimensional enumeration, but apparently, it only deals with finite iterators.

follow up #19319 (is now a dependency of this ticket).

@cheuberg
Copy link
Contributor

comment:18

Doctests pass on 6.9.beta5. On 6.9.rc0, they do not (cf. patchbot). After merging all dependencies into 6.9.rc0, there is still one failing doctest:

sage -t src/sage/rings/asymptotic/asymptotic_ring.py
**********************************************************************
File "src/sage/rings/asymptotic/asymptotic_ring.py", line 655, in sage.rings.asymptotic.asymptotic_ring.AsymptoticExpression.__pow__
Failed example:
    (y^2+O(y))^(-2)
Expected:
    Traceback (most recent call last):
    ...
    TypeError: unsupported operand parent(s) for '/':
    'Asymptotic Ring <y^ZZ> over Integer Ring' and 'Asymptotic
    Ring <y^ZZ> over Integer Ring'
Got:
    <BLANKLINE>
    Traceback (most recent call last):
    ...
    CoercionException: Infinite loop in action of Integer Ring (parent <type 'sage.rings.integer_ring.IntegerRing_class'>) and Asymptotic Ring <y^ZZ> over Integer Ring (parent <class 'sage.rings.asymptotic.asymptotic_ring.AsymptoticRing_with_category'>)!

@cheuberg
Copy link
Contributor

comment:19

Merging #19068 would solve the problem, but perhaps you could have a look whether there is some deeper problem before.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 1, 2015

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

abb08ffimprove _element_constructor_
78b9e96Trac #17716: additional doctest
055e35bTrac #17716: Fix ReSt error
e8e2501make entry in reference/index
e81d77dMerge branch 'u/dkrenn/asy/asymptoticExpression' of trac.sagemath.org:sage into t/19048/asy/an_element
9a77311deal with product(empty, infinite)
70185c3remove unneccesary try/except block
d4dec2bTrac #19319: alternative implementation
fde8e6dminor changes to code: spacings, PEP8, remove comment
f0b1172Merge branch 'u/dkrenn/product_cantor_pairing' of trac.sagemath.org:sage into t/19048/asy/an_element

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 1, 2015

Changed commit from ba99790 to f0b1172

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 1, 2015

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

8894fceMerge branch 't/17716/asy/asymptoticExpression' into t/19068/asy/inversion
dc38b28Merge branch 'asy/asymptoticExpression' into asy/inversion
59e5d38Merge tag '6.9.rc0' into asy/inversion
f0b759aMerge branch 'asy/asymptoticExpression' into asy/inversion
b37740fremove code duplicate
bfc460afix removed keyword 'default_prec'
fc9bcf2add result to doctest
4edaa39slightly improve __pow__
c7023ddtodo-block with remark w.r.t. L-terms added
f6b06c9Merge branch 'u/behackl/asy/inversion' of trac.sagemath.org:sage into t/19048/asy/an_element

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 1, 2015

Changed commit from f0b1172 to f6b06c9

@dkrenn
Copy link
Contributor Author

dkrenn commented Oct 1, 2015

Changed dependencies from #17716, #19047, #19319 to #17716, #19047, #19068, #19319

@dkrenn
Copy link
Contributor Author

dkrenn commented Oct 1, 2015

comment:23

Replying to @cheuberg:

Merging #19068 would solve the problem, but perhaps you could have a look whether there is some deeper problem before.

Merging #19068 is fine.

@cheuberg
Copy link
Contributor

cheuberg commented Oct 2, 2015

comment:24

#19319 now has completely new code which is guaranteed to produce merge conflicts here.

@cheuberg
Copy link
Contributor

cheuberg commented Oct 3, 2015

Changed branch from u/dkrenn/asy/an_element to u/cheuberg/asy/an_element

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 3, 2015

Changed commit from f6b06c9 to 617c593

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 3, 2015

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

c41435fRevert "copy code from #19048"
c655f9fTrac 19319: Cantor iteration of cartesian products
4a52a84Trac 19319: fix doctests
3c5af3bTrac #19319: fix typo
c20bfe5Trac #19319: a.next() -> next(a) (Python3 compliance)
1fee722Trac #19319: added a few blanks
96c0366Trac 19319: return tuples + repeat argument
ceb1db5Trac #19048: Merge #19319
3fd53d6Trac #19048: rename product_cantor_pairing to cantor_product (see #19319)
617c593Trac #19048: Fix doctests (order in cantor_product changed)

@cheuberg
Copy link
Contributor

cheuberg commented Oct 3, 2015

comment:27

I reviewed this code before #19319 had been factored out and did not have any objections to the part which is still in this ticket.

Replying to @cheuberg:

#19319 now has completely new code which is guaranteed to produce merge conflicts here.

I now reverted all changes by the old branch of #19319, merged the new branch of #19319 and fixed code and doctests here.

Please cross-review this revert+merge+fix and set the ticket to positive_review if you are satisfied.

@behackl
Copy link
Member

behackl commented Oct 5, 2015

comment:28

Thanks for your review and the merge of the changes at #19319. I cross-checked everything; your changes look fine; documentation builds and doctests pass.

Together with your previous review, this is positive_review.

@vbraun
Copy link
Member

vbraun commented Oct 14, 2015

Changed branch from u/cheuberg/asy/an_element to 617c593

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants