#7545: Gaussian Integers
-----------------------------+----------------------------------------------
   Reporter:  wuthrich       |       Owner:  davidloeffler                      
           
       Type:  enhancement    |      Status:  needs_info                         
           
   Priority:  minor          |   Milestone:  sage-wishlist                      
           
  Component:  number fields  |    Keywords:  gaussian integers, Z[i], quadratic 
number ring
Work_issues:                 |      Author:                                     
           
   Upstream:  N/A            |    Reviewer:                                     
           
     Merged:                 |  
-----------------------------+----------------------------------------------
Changes (by wuthrich):

  * status:  new => needs_info


Comment:

 The added patch will add a file 'gaussian_integer.py' which adds
 {{{GaussianIntegers}}} and {{{GaussianNumberField}}} to sage. The elements
 of the {{{GaussianIntegers}}} are elements in a quadratic Order, but they
 have a few more functions. Like {{{factor}}}, {{{gcd}}}, {{{is_prime}}},
 {{{quo_rem}}},... Also they are printed as {{{a + b*i}}} not as {{{b*i +
 a}}}. Also the coefficients of integers are in {{{ZZ}}}, not in {{{QQ}}}
 as for general quadratic orders.

 I am not sure if I should propose this ticket for review and inclusion in
 sage. It maybe against the more general framework in number fields and
 will create silly exceptions. Also I still have not learned to do this in
 cython, so it is nowhere as efficient as it should be.

 One might also want to change further things, like the function {{{gcd}}}.
 Also {{{QuadarticField(-1)}}} should give back {{{GaussianNumberFields}}}
 etc.

 A futher issue is 'i'. By default i is a symbol expression. If someone
 types {{{GaussianInteger()}}} he will probably assume that 'i' is in it
 afterwards. But changing this would probably not be a good idea.

 Anyway, the patch is here to be looked at as it may inspire some further
 work in this direction.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7545#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--

You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to