Skip to main content

All Questions

10 votes
4 answers
1k views

An inverted pyramid

I want to draw a pyramid approximately like this ...
eldo's user avatar
  • 81.5k
8 votes
11 answers
1k views

Ragged Diamonds

diamond[n_Integer] := Table[1, {#}] & /@ (Range[n]~ Join~Range[n - 1, 1, -1]) diamond[5] // MatrixForm How could a more functional, "tablefree", solution ...
eldo's user avatar
  • 81.5k
19 votes
11 answers
2k views

Efficient way to build a certain square matrix

For odd n I'm looking for a short and swift way to construct with (f.e.) n = 3 n = 11 <...
eldo's user avatar
  • 81.5k