MathGroup Archive 2008

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

Search the Archive

Re: Inconsistent behavior?


angela wrote:
> Binomial[n,4] yields
> 1/24 (-3+n) (-2+n) (-1+n) n
> 
> Binomial[n,5] yields
> 1/120 (-4+n) (-3+n) (-2+n) (-1+n) n
> 
> Binomial[n,6] yields
> Binomial[n,6]
> 
> Binomial[n,7] yields
> Binomial[n,7]
> 

As you increase the second argument, the expression is getting larger 
quickly.  Binomial[n, 100] /. n -> 101 can be computed much more quickly 
if Binomial[n, 100] is not expanded in terms of n before the value 101 
is substituted.  You can explicitly request symbolic expansion using 
FunctionExpand:

Binomial[n, 100] // FunctionExpand

Szabolcs


  • Prev by Date: Re: Inconsistent behavior?
  • Next by Date: Interpretation with If
  • Previous by thread: Re: Inconsistent behavior?
  • Next by thread: Re: Inconsistent behavior?