All Questions
Tagged with expression-construction algorithm
3
questions
10
votes
4
answers
1k
views
An inverted pyramid
I want to draw a pyramid approximately like this
...
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 ...
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
<...