MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: (2/3)[[1]]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96407] Re: (2/3)[[1]]
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Fri, 13 Feb 2009 03:41:00 -0500 (EST)
  • References: <gn11e8$7vn$1@smc.vnet.net>

obott0 at gmail.com wrote:
> I'm not sure if this has been asked before, but why can't Part be used
> with Rational?
> 
> i.e. (2/3)[[1]]
> 
> Thanks.
> 
Internally, Mathematica considers rational numbers to be atomic objects 
- they only print in a way that makes them look otherwise. You will find 
that Complex[2,3] behaves in the same way for the same reason.

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: (2/3)[[1]]
  • Next by Date: Re: (2/3)[[1]]
  • Previous by thread: Re: (2/3)[[1]]
  • Next by thread: Re: Re: (2/3)[[1]]