Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1948
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!nx01.iad01.newshosting.com!newshosting.com!newspump.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail |
|---|---|
| From | Christopher Arthur <aarthur@tx.rr.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Drawing a vector list |
| Date | Thu, 28 Apr 2011 10:34:26 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <ipbfri$acf$1@smc.vnet.net> (permalink) |
| Lines | 21 |
| NNTP-Posting-Date | 28 Apr 2011 09:35:11 GMT |
| NNTP-Posting-Host | b65042e2.news.twtelecom.net |
| X-Trace | DXC=gcgAl:8HONjJiN0nd\md:iC_A=>8kQj6m;[h;PUXBgbdAbB79SZHZ=lEFiONJ7[GofYk6F\P:JZGa |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:1948 |
Show key headers only | View raw
Hello Hauke Reddmann,
The easiest way to do this elegantly is with Apply[] or Map[] which
takes a list and makes each element the domain of a function. The
result is also a list. For example,
f[vect_]:={Polygon[...make a triangle...]}
Apply[f[#]&,L]
Hauke Reddmann a =E9crit :
> A n00b question - I have a 3D vector list L={{A1,A2},{B1,B2},{C1,C2}...
> where for example A1={1,2,3},A2={4,5,6} and so on. I want to draw
> the vectors A1->A2 etc. LINE has no arrowhead option, ARROW only eats 2D vectors
> and VECTORPLOT3D has yet another unfitting syntax. I could do a hackjob and
> first draw LINE[L] and then make a loop adding little arrowheads at all #2
> (and I would have to compute their directions too!),
> but what is the most elegant way to program this without any DO loops?
>
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Drawing a vector list Christopher Arthur <aarthur@tx.rr.com> - 2011-04-28 10:34 +0000
csiph-web