Changes between Initial Version and Version 11 of Ticket #8111


Ignore:
Timestamp:
05/27/20 19:04:18 (2 years ago)
Author:
gh-kliem
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8111

    • Property Status changed from new to needs_review
    • Property Authors changed from to Jonathan Kliem
    • Property Milestone changed from sage-5.11 to sage-duplicate/invalid/wontfix
    • Property Stopgaps changed from to todo
    • Property Keywords sd109 added
  • Ticket #8111 – Description

    initial v11  
     1This appears to be solved by now.
     2
     3The output is now
     4
     5{{{
     664
     71
     81
     9(k^2 + 2)/(k^3 + 4)
     10}}}
     11
     12Original description (updated to python3):
     13
    114The GCD of rationals is still unclear (see trac 3214), and leads to definite problems with reduce().
    215
    316{{{
    417K.<k>= QQ[];
    5 print gcd(64,256)
    6 print gcd(K(64),K(256))
    7 print gcd(64*k^2+128,64*k^3+256)
     18print(gcd(64,256))
     19print(gcd(K(64),K(256)))
     20print(gcd(64*k^2+128,64*k^3+256))
    821frac = (64*k^2+128)/(64*k^3+256)
    922frac.reduce()
    10 print frac
     23print(frac)
    1124}}}
    1225gives