Opened 3 years ago

Closed 3 years ago

#22396 closed defect (fixed)

AsymptoticRing default_prec lost with coercion

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

Description

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))

vs.

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 3 years ago by dkrenn

  • Cc cheuberg behackl added

comment:2 Changed 3 years ago by dkrenn

  • Branch set to u/dkrenn/asy-function-default-prec

comment:3 Changed 3 years ago by dkrenn

  • Authors set to Daniel Krenn
  • Commit set to 9940f17048965f3019d1c2fdefb40e51532c519d
  • Dependencies set to #22392
  • Status changed from new to needs_review

New commits:

4ddcdc3Trac #22392: new parameter cls
45728ffTrac #22392: pass cls from AsymptoticRing.construction
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 3 years ago by cheuberg

  • Branch changed from u/dkrenn/asy-function-default-prec to u/cheuberg/asy-function-default-prec

comment:5 Changed 3 years ago by git

  • Commit changed from 9940f17048965f3019d1c2fdefb40e51532c519d to 1690706f7179925b5112bd80fa92155854647da4

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

1690706Trac #22396: mention Trac ticket in Tests

comment:6 Changed 3 years ago by cheuberg

  • Reviewers set to Clemens Heuberger
  • Status changed from needs_review to positive_review

LGTM.

comment:7 Changed 3 years ago by vbraun

  • Branch changed from u/cheuberg/asy-function-default-prec to 1690706f7179925b5112bd80fa92155854647da4
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.