Re: Repackaging function arguments
- To: mathgroup at smc.vnet.net
- Subject: [mg124934] Re: Repackaging function arguments
- From: "djmpark" <djmpark at comcast.net>
- Date: Mon, 13 Feb 2012 03:38:27 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <33517042.9638.1329041495254.JavaMail.root@m06>
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 at comcast.net http://home.comcast.net/~djmpark/index.html From: Sam Takoy [mailto:sam.takoy at 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