MathGroup Archive 2001

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

Search the Archive

Re: Properly Formatted Pascal's Triangle?

  • To: mathgroup at
  • Subject: [mg28645] Re: [mg28639] Properly Formatted Pascal's Triangle?
  • From: BobHanlon at
  • Date: Fri, 4 May 2001 00:23:10 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

pascal[k_Integer?NonNegative, opts___] := 
    Module[{n, m}, 
          Table[Text[Binomial[n, m], {-n/2+m, -n}], 
            {n, 0, k}, {m, 0, n}]], opts]];

pascal[10, ImageSize -> 300];

Bob Hanlon

In a message dated 2001/5/3 4:45:54 AM, kd7cyb at writes:

>How can I generate a properly formatted Pascal's triangle in
>Mathematica? I wish to make it look like those in textbooks where rows
>are center aligned and columns have proper staggering.

  • Prev by Date: Re: PlotVectorField with InterpolatingFunction
  • Next by Date: connectivity matrix.
  • Previous by thread: Properly Formatted Pascal's Triangle?
  • Next by thread: PlotVectorField with InterpolatingFunction