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
- Follow-Ups:
- Re: Re: (2/3)[[1]]
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: (2/3)[[1]]