[sage-support] Re: support for mixed numbers

2007-02-07 Thread Martin Albrecht

On Wednesday 07 February 2007 07:44, Timothy Clemans wrote:
 Does SAGE support representing 11/3 as 3 2/3, 22/13 as 1 9/13, and
 55/4 as 11 1/4? My understanding is that this is the standard in math.

Hi,

what do you mean by representing? SAGE can surely read those 
representations:

sage: 11/3
11/3
sage: 3 + 2/3
11/3
sage: 22/6
11/3

However, the output (and storage format) are always going to be the same: i.e. 
numerator and denominator are canceled out as much as possible, which is the 
canonical representation. Given, that there are infinitely many 
representations, it is necessary to restrict to a canonical representation.

Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: support for mixed numbers

2007-02-07 Thread Timothy Clemans

Thanks. I did not know. I thought the standard was mixed numbers.

On 2/7/07, Martin Albrecht [EMAIL PROTECTED] wrote:

 On Wednesday 07 February 2007 07:44, Timothy Clemans wrote:
  Does SAGE support representing 11/3 as 3 2/3, 22/13 as 1 9/13, and
  55/4 as 11 1/4? My understanding is that this is the standard in math.

 Hi,

 what do you mean by representing? SAGE can surely read those
 representations:

 sage: 11/3
 11/3
 sage: 3 + 2/3
 11/3
 sage: 22/6
 11/3

 However, the output (and storage format) are always going to be the same: i.e.
 numerator and denominator are canceled out as much as possible, which is the
 canonical representation. Given, that there are infinitely many
 representations, it is necessary to restrict to a canonical representation.

 Martin

 --
 name: Martin Albrecht
 _pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99
 _www: http://www.informatik.uni-bremen.de/~malb
 _jab: [EMAIL PROTECTED]


 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---