Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Number of monomials

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87052] Re: Number of monomials
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sun, 30 Mar 2008 01:17:00 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <fsd6lf$9fn$1@smc.vnet.net> <fsg6rh$jae$1@smc.vnet.net> <200803280816.DAA04771@smc.vnet.net> <fsl28k$gak$1@smc.vnet.net>

Artur wrote:

> In[1]:=Length[f[1]+f[2]+f[3]]
> Out[1]:=3
> OK!
> In[2]:=Length[f[1]+f[2]]
> Out[2]:=2
> OK!
> In[3]:=Length[f[1]]
> Out[3]:=0
> ???????????
> Who understand let share with me, please!

Weird. Works fine (that is Length[f[1]] returns 1 as expected) on my 
system (Mac Os X 10.0.2 Leopard - Mathematica 6.0.2). What system were 
you using?


In[1]:= Length[f[1] + f[2] + f[3]]

Out[1]= 3

In[2]:= Length[f[1] + f[2]]

Out[2]= 2

In[3]:= Length[f[1]]

Out[3]= 1

In[4]:= $Version

Out[4]= "6.0 for Mac OS X x86 (64-bit) (February 7, 2008)"


Regards,
-- 
Jean-Marc


  • Prev by Date: Re: symbolic evaluation
  • Next by Date: Re: Number of monomials
  • Previous by thread: Number of monomials
  • Next by thread: Re: Number of monomials