Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8162
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Benjamin Hell <hell@exoneon.de> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | calculating with vectors of variable length |
| Date | Wed, 25 Jan 2012 12:13:57 +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 | <jform5$6d0$1@smc.vnet.net> (permalink) |
| Lines | 17 |
| NNTP-Posting-Date | 25 Jan 2012 12:14:28 GMT |
| NNTP-Posting-Host | 3d34f8e6.news.twtelecom.net |
| X-Trace | DXC=33[7gI1h<A=oRAA5\IJ>C;C_A=>8kQj6=hHXa^^g6TZ4JYk9AMAdoA3EFiONJ7[Go6QTe7]kA2Qe; |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:8162 |
Show key headers only | View raw
Hi,
I'd like to work with vectors of variable length. A short example would
be this:
a = {a1,...,an}
f[x_]:=a.x
The vector x should be treated as a vector {x1,...,xn} and n should be
variable and not be specified prior to any calculations.
One possible calculation would be:
D[f,x3]
which should give a3 according to the definition of f above.
How can I implement that in mathematica?
Thanks in advance,
Benjamin
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
calculating with vectors of variable length Benjamin Hell <hell@exoneon.de> - 2012-01-25 12:13 +0000
csiph-web