MathGroup Archive 2009

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

Search the Archive

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


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]]