Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: Repackaging function arguments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg124943] Re: Repackaging function arguments
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Mon, 13 Feb 2012 03:41:35 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201202121000.FAA25081@smc.vnet.net>

Note that FindRoot has attribute HoldAll

Attributes[FindRoot]

{HoldAll, Protected}

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

FindRoot[Sin[x] + Exp[x], {x, 0}, Evaluate[params]]

{x -> -0.58853274398186107743245204570290368853127151610903}


Bob Hanlon

On Sun, Feb 12, 2012 at 5:00 AM, Sam Takoy <sam.takoy at yahoo.com> wrote:
> Hi,
>
> 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?
>
> Thank you in advance,
>
> Sam
>



  • Prev by Date: Re: Repackaging function arguments
  • Next by Date: Re: Setting global graphics options
  • Previous by thread: Repackaging function arguments
  • Next by thread: Re: Repackaging function arguments