MathGroup Archive 1997

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

Search the Archive


  • To: mathgroup at
  • Subject: [mg6374] [mg6374] (a+b)^b
  • From: TTCJ34A at (DR JOHN C ERB)
  • Date: Fri, 14 Mar 1997 14:54:20 -0500 (EST)
  • Sender: owner-wri-mathgroup at

>Hi All,

>Who could help me and give the formule of the following:

>(a+b)2 = 1a2 + 2ab + 1b2

>What is the formule of (a+b)n ???
>n is a variable number.


>Yiorgos Wisse
>Gerard.Wisse at

Try using the buillt-in function Binomial.

E.G.,  n=4;
         Table[Binomial[n,j],{j,0,n}] gives

Or you may wish to use Expand
       Expand[(a+b)^2] gives
       a^2 + 2 a b + b^2

Hope this is what you were looking for.
John C. Erb

  • Prev by Date: ToExpression with CForm
  • Next by Date: Re: REQ: (a+b)n
  • Previous by thread: Re: ToExpression with CForm
  • Next by thread: Re: Re: Math 3.0 huge Help files