Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1842 > unrolled thread
| Started by | JJ <wateronwildfire@gmail.com> |
|---|---|
| First post | 2011-04-23 11:49 +0000 |
| Last post | 2011-04-23 11:49 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
Re: How to roll up multiple Line calls into a loop JJ <wateronwildfire@gmail.com> - 2011-04-23 11:49 +0000
| From | JJ <wateronwildfire@gmail.com> |
|---|---|
| Date | 2011-04-23 11:49 +0000 |
| Subject | Re: How to roll up multiple Line calls into a loop |
| Message-ID | <ioued0$6gi$1@smc.vnet.net> |
Maybe something like
Graphics[Table[Line[{{0,11-i},{i,0}}],{i,1,10}]]
2011/4/22 Sol Lederman <sol.lederman@gmail.com>
> Hi,
>
> I'm new to Mathematica.
>
> I have the following bit of graphics:
>
> Graphics[{
> Line[{{0, 10}, {1, 0}}],
> Line[{{0, 9}, {2, 0}}],
> Line[{{0, 8}, {3, 0}}],
> Line[{{0, 7}, {4, 0}}],
> Line[{{0, 6}, {5, 0}}],
> Line[{{0, 5}, {6, 0}}],
> Line[{{0, 4}, {7, 0}}],
> Line[{{0, 3}, {8, 0}}],
> Line[{{0, 2}, {9, 0}}],
> Line[{{0, 1}, {10, 0}}],
> }]
>
>
> I want to simplify it to do some sort of iteration to compute the end
> points
> of the lines. I can do this easily in a variety of procedural languages but
> I haven't yet grokked how Mathematica would do this.
>
>
> Would someone please show me the short way, I imagine using Table somehow?
>
>
> Thanks.
>
>
> Sol
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web