Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8519 > unrolled thread

Re: Repackaging function arguments

Started by"djmpark" <djmpark@comcast.net>
First post2012-02-13 08:39 +0000
Last post2012-02-13 08:39 +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.


Contents

  Re: Repackaging function arguments "djmpark" <djmpark@comcast.net> - 2012-02-13 08:39 +0000

#8519 — Re: Repackaging function arguments

From"djmpark" <djmpark@comcast.net>
Date2012-02-13 08:39 +0000
SubjectRe: Repackaging function arguments
Message-ID<jhai77$4vu$1@smc.vnet.net>
Use:

params = Sequence[AccuracyGoal -> 30, PrecisionGoal -> 30, 
  WorkingPrecision -> 50];

Then since FindRoot has the Attribute HoldAll,

FindRoot[Sin[x] + Exp[x], {x, 0}, Evaluate@params] 
{x -> -0.58853274398186107743245204570290368853127151610903} 


David Park
djmpark@comcast.net 
http://home.comcast.net/~djmpark/index.html 


From: Sam Takoy [mailto:sam.takoy@yahoo.com] 


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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web