Opened 6 years ago

Closed 6 years ago

#22396 closed defect (fixed)

AsymptoticRing default_prec lost with coercion

Reported by: Daniel Krenn Owned by:
Priority: major Milestone: sage-7.6
Component: asymptotic expansions Keywords:
Cc: Clemens Heuberger, Benjamin Hackl Merged in:
Authors: Daniel Krenn Reviewers: Clemens Heuberger
Report Upstream: N/A Work issues:
Branch: 1690706 (Commits, GitHub, GitLab) Commit: 1690706f7179925b5112bd80fa92155854647da4
Dependencies: #22392 Stopgaps:

Status badges


sage: A.<n> = AsymptoticRing('ZZ^n * n^ZZ', ZZ, default_prec=3)
sage: 1/(1+n)
n^(-1) - n^(-2) + n^(-3) + O(n^(-4))


sage: 1/(QQ(1)+n)
n^(-1) - n^(-2) + n^(-3) - n^(-4) + n^(-5) - n^(-6) + n^(-7) - n^(-8) + n^(-9) - n^(-10) + n^(-11) - n^(-12) + n^(-13) - n^(-14) + n^(-15) - n^(-16) + n^(-17) - n^(-18) + n^(-19) - n^(-20) + O(n^(-21))

Change History (7)

comment:1 Changed 6 years ago by Daniel Krenn

Cc: Clemens Heuberger Benjamin Hackl added

comment:2 Changed 6 years ago by Daniel Krenn

Branch: u/dkrenn/asy-function-default-prec

comment:3 Changed 6 years ago by Daniel Krenn

Authors: Daniel Krenn
Commit: 9940f17048965f3019d1c2fdefb40e51532c519d
Dependencies: #22392
Status: newneeds_review

New commits:

4ddcdc3Trac #22392: new parameter cls
45728ffTrac #22392: pass cls from
0982d06Trac #22392: use new parameter cls
f6d4502Trac #22392: adapt repr
2c752fcTrac #22396: keep track of default_prec and category in construction functor
c5db054Trac #22396: pass parameters to functor
e4cac6eTrac #22396: doctest
26aebecTrac #22396: equality-test
0e4c5d4Trac #22396: determine new parameters
9940f17Trac #22396: doctests

comment:4 Changed 6 years ago by Clemens Heuberger

Branch: u/dkrenn/asy-function-default-precu/cheuberg/asy-function-default-prec

comment:5 Changed 6 years ago by git

Commit: 9940f17048965f3019d1c2fdefb40e51532c519d1690706f7179925b5112bd80fa92155854647da4

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

1690706Trac #22396: mention Trac ticket in Tests

comment:6 Changed 6 years ago by Clemens Heuberger

Reviewers: Clemens Heuberger
Status: needs_reviewpositive_review


comment:7 Changed 6 years ago by Volker Braun

Branch: u/cheuberg/asy-function-default-prec1690706f7179925b5112bd80fa92155854647da4
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.