Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4736 > unrolled thread

Re: Pascal's triangle spacing is off. Need DigitCount?

Started byChristopher Young <cy56@comcast.net>
First post2011-09-04 08:16 +0000
Last post2011-09-04 08:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Pascal's triangle spacing is off. Need DigitCount? Christopher Young <cy56@comcast.net> - 2011-09-04 08:16 +0000

#4736 — Re: Pascal's triangle spacing is off. Need DigitCount?

FromChristopher Young <cy56@comcast.net>
Date2011-09-04 08:16 +0000
SubjectRe: Pascal's triangle spacing is off. Need DigitCount?
Message-ID<j3vc5f$ek9$1@smc.vnet.net>
Thanks, I stumbled upon that after fiddling around for a while. Seems to me it would be a handy option to have in Row[ ], also.

On Sep 3, 2011, at 5:01 PM, Heike Gramberg wrote:

> You could use Grid  in combination with ItemSize instead of Row to give all the entries the same width, e.g.
>
> pascalTrngl2[n_] :=
> Module[{max, sp}, max = Max[Table[Binomial[n, j], {j, 0, n}]];
>  sp = Round[N[Log[10, max], 5]];
>  Column[Table[Grid[{Table[Binomial[i, j], {j, 0, i}]},
>     ItemSize -> sp], {i, 0, n}], Center]]
>
> pascalTrngl2[10]
>
> Heike

Chris Young
cy56@comcast.net

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web