Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2186
| From | "Yasvir Tesiram, PhD" <Yasvir-Tesiram@omrf.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Converting a list to arguments for a function --- How? |
| Date | 2011-05-07 11:30 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iq3ah5$fdj$1@smc.vnet.net> (permalink) |
Hello,
Apply[f, list] will do what you want. Or f@@list is the same thing.
Yas
-----Original Message-----
From: Virgil Stokes [mailto:vs@it.uu.se]
Sent: Fri 5/6/2011 6:24 AM
Subject: Converting a list to arguments for a function --- How?
Suppose I have a list,
list == {4,1,1}
and I wish to use it as follows
f[4,1,1]
Is there a simple way (without looping through the elements list) to transfer
the elements of list to the arguments for f?
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Converting a list to arguments for a function --- How? "Yasvir Tesiram, PhD" <Yasvir-Tesiram@omrf.org> - 2011-05-07 11:30 +0000
csiph-web