Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8523 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-02-13 08:43 +0000 |
| Last post | 2012-02-13 08:43 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Repackaging function arguments Bob Hanlon <hanlonr357@gmail.com> - 2012-02-13 08:43 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-02-13 08:43 +0000 |
| Subject | Re: Repackaging function arguments |
| Message-ID | <jhaifs$552$1@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@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
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web