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

MathGroup Archive 2001

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

Search the Archive

Re: Properly Formatted Pascal's Triangle?

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

pascal[k_Integer?NonNegative, opts___] := 
    Module[{n, m}, 
      Show[Graphics[
          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 mac.com 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