MathGroup Archive 2012

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

Search the Archive

Re: Repackaging function arguments


On 2/12/12 at 5:00 AM, sam.takoy at yahoo.com (Sam Takoy) wrote:


>Suppose I have a variable

>params = {AccuracyGoal->30, PrecisionGoal->30, WorkingPrecision->50}

>How do I "repackage" it so I can pass it to functions such as
>FindRoot?

In[5]:= FindRoot[Sin[x - 10] - x + 10, {x, 0},
  Evaluate[Sequence @@ params]]

Out[5]= {x->9.9999999999999999082814968797948489030999445842851}




  • Prev by Date: Re: creation of date list
  • Next by Date: Re: Repackaging function arguments
  • Previous by thread: Re: Repackaging function arguments
  • Next by thread: Re: Repackaging function arguments