Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2183

Re: Converting a list to arguments for a function --- How?

From Yves Klett <yves.klett@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Converting a list to arguments for a function --- How?
Date 2011-05-07 11:29 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <iq3aff$fc5$1@smc.vnet.net> (permalink)
References <iq0lpe$2q0$1@smc.vnet.net>

Show all headers | View raw


Hi,

probably answer no.200 with redundant content on this, but:

look at Apply or @@:

f @@ {4, 1, 1}

f[4, 1, 1]

Regards,
Yves

Am 06.05.2011 13:24, schrieb Virgil Stokes:
> 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 | NextPrevious in thread | Find similar | Unroll thread


Thread

Converting a list to arguments for a function --- How? Virgil Stokes <vs@it.uu.se> - 2011-05-06 11:24 +0000
  Re: Converting a list to arguments for a function --- How? Stefan Salanski <wutchamacallit27@gmail.com> - 2011-05-07 11:31 +0000
  Re: Converting a list to arguments for a function --- How? Luci Ellis <luci@verbeia.com> - 2011-05-07 11:33 +0000
  Re: Converting a list to arguments for a function --- How? Michael Weyrauch <michael.weyrauch@gmx.de> - 2011-05-07 11:34 +0000
  Re: Converting a list to arguments for a function --- How? Jingjing Wang <brightapple2008@gmail.com> - 2011-05-07 11:35 +0000
  Re: Converting a list to arguments for a function --- How? Peter Breitfeld <phbrf@t-online.de> - 2011-05-07 11:35 +0000
  Re: Converting a list to arguments for a function --- How? AES <siegman@stanford.edu> - 2011-05-07 11:29 +0000
  Re: Converting a list to arguments for a function --- How? Yves Klett <yves.klett@googlemail.com> - 2011-05-07 11:29 +0000

csiph-web