axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Axiom-developer] Re: [sage-devel] Re: gcd lcm and numberfields


From: daly
Subject: [Axiom-developer] Re: [sage-devel] Re: gcd lcm and numberfields
Date: Fri, 11 Feb 2011 04:34:47 -0500

On Fri, 2011-02-11 at 09:20 +0000, David Kirkby wrote:
> On 10 February 2011 14:51, rjf <address@hidden> wrote:
> > in maxima, gcd(1/4,1/6)  is 1/12,  lcm is 1/2
> >
> > Since maxima immediately simplifies 2/1  to 2, there is no
> > distinction between gcd(2/1, ....)   and gcd(2, ...)
> 
> FWIW, I just noticed that Mathematica treats 2/1 as an integer and not
> as a rational.
> 
> In[1]:= Head[2]
> 
> Out[1]= Integer
> 
> In[2]:= Head[1/3]
> 
> Out[2]= Rational
> 
> In[3]:= Head[2/1]
> 
> Out[3]= Integer
> 
What does MMA do with gcd(2/1,4)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]