Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: lists w/o double brackets

  • To: mathgroup at smc.vnet.net
  • Subject: [mg31451] Re: [mg31436] lists w/o double brackets
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Wed, 7 Nov 2001 05:29:13 -0500 (EST)
  • References: <200111050848.DAA05905@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Gavin K Brennen wrote:

> Hello,
>
> I am using the function FindRoot with a large number of simultaneous equations.
>
>         FindRoot[eqs,initialvals]
>
> I have a function for generating the equations which works fine as a list
> input in FindRoot, however I am having difficulty creating a function for
> generating initialvals that will be accepted by FindRoot.  The problem
> seems to be that FindRoot demands a format
>
>         FindRoot[{eq1,eq2,...,eqn},{var1,val1},{var2,val2},...,{varn,valn}]
>
> the variables and initial values of which must appear as a list without
> double brackets.  The function I have for generating the initial values
> always outputs the list as follows

Apply the Sequence function to your initial value list:

FindRoot[(eq1,eq2,...},Sequence@@{{var1,val1},{var2,val2},...}}]

should work.



  • Prev by Date: 2nd order differential equation help
  • Next by Date: Re: Clearing Subscripted Variables?
  • Previous by thread: lists w/o double brackets
  • Next by thread: Re: lists w/o double brackets