Opened 5 years ago
Last modified 10 months ago
#20466 needs_work defect
Can't multiply continued fractions
Reported by: | kcrisman | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-wishlist |
Component: | number theory | Keywords: | continued_fraction |
Cc: | vdelecroix, slelievre, tmonteil | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
There has been some reimplementation on here, so maybe this is no longer true, but this ask.sagemath post anyway points out
sage: x = continued_fraction(pi) sage: y = 3*x TypeError: unsupported operand parent(s) for '*': 'Integer Ring' and '<class 'sage.rings.continued_fraction.ContinuedFraction_real'>'
Change History (8)
comment:1 Changed 5 years ago by
- Cc vdelecroix slelievre tmonteil added
- Keywords continued_fraction added
comment:2 Changed 5 years ago by
comment:3 Changed 10 months ago by
- Milestone changed from sage-7.2 to sage-duplicate/invalid/wontfix
- Status changed from new to needs_review
maybe we can close as duplicate ?
comment:4 Changed 10 months ago by
Why would you? #19120 does not implement the full gosper algorithm for (a xy + b x + cy + d) / (e xy + f x + g y + h)
but only (ax + b) / (cx + d)
.
comment:5 Changed 10 months ago by
Though that could work for 3*x
.
comment:6 Changed 10 months ago by
indeed. Y a un algo pour multiplier deux fractions continues quelconques ?
comment:7 Changed 10 months ago by
- Milestone changed from sage-duplicate/invalid/wontfix to sage-wishlist
- Status changed from needs_review to needs_work
comment:8 Changed 10 months ago by
Yes, for example http://www.inwap.com/pdp10/hbaker/hakmem/cf.html
Note: See
TracTickets for help on using
tickets.
See #19120