MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Turning the elements of a list into the arguments of a function.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8827] Turning the elements of a list into the arguments of a function.
  • From: "Scott Morrison" <scott at morrison.fl.net.au>
  • Date: Mon, 29 Sep 1997 02:39:52 -0400
  • Organization: Information Technology Services, The University of Sydney, NSW, Australia
  • Sender: owner-wri-mathgroup at wolfram.com

 Hi.  I'm sort of new to Mathematica, and Chapter 2.2 in the manual on
Functional Operators and listy things makes my head spin :-)

I need to be able to convert
f[q, {{a,b}, {c,d}}] into f[q, {a,b}, {c,d}]

If the problem were to convert f[{{a,b},{c,d}}] into f[{a,b}, {c,d}], I know
I could do this with Apply, as Apply[f, {{a,b},{c,d}}], but having that
first argument is making my life difficult.

What I am actually trying to do is use FindMinimum with a variable number of
variables, so I tried FindMinimum[expr, Table[{g[i], 0}, {i, 1, n}] sort of
thing, but this puts all the variables and their starting values in one huge
list.

Does anyone have some ideas on how to solve this one?

Thanks muchly,
Scott Morrison
scott at morrison.fl.net.au





  • Prev by Date: [Help?] Integer/Decimal portion of a real number
  • Next by Date: := vs. =
  • Previous by thread: Re: [Help?] Integer/Decimal portion of a real number
  • Next by thread: Re: Turning the elements of a list into the arguments of a function.