MathGroup Archive 2001

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

Search the Archive

Re: Properly Formatted Pascal's Triangle?


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