MathGroup Archive 2007

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

Search the Archive

Re: Get list of function variables?

  • To: mathgroup at
  • Subject: [mg84162] Re: Get list of function variables?
  • From: Jason Quinn <jason.lee.quinn at>
  • Date: Wed, 12 Dec 2007 01:18:41 -0500 (EST)
  • References: <fhjs5v$4t3$> <fhu7j5$7b1$>

On Dec 9, 6:33 am, Szabolcs Horv=E1t <szhor... at> wrote:
> error[expr_, vars_List, errs_List] := Sqrt[D[expr, {vars}]^2 . errs^2]
> Use it in the following way:
> error[w x y z, {x, y, z}, {ex, ey, ez}]
> or
> error[f[w, x, y, z], {x, y, z}, {ex, ey, ez}]
> Here it is made very clear which symbols represent the function
> variables (x, y, and z), which are simply parameters (w), and which are
> the errors (ex, ey, and ez).  And the user of the function has the
> freedom to choose these names.

Very nice solutions, Szabolcs. Thank you very much.

  • Prev by Date: Printing Problem V6.01
  • Next by Date: Re: Prefix Forms on the BasicMath Palette
  • Previous by thread: Re: Get list of function variables?
  • Next by thread: clear InputField