MathGroup Archive 2012

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

Search the Archive

Re: Symmetrizing function arguments

  • To: mathgroup at smc.vnet.net
  • Subject: [mg127629] Re: Symmetrizing function arguments
  • From: James Stein <mathgroup at stein.org>
  • Date: Wed, 8 Aug 2012 21:36:00 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <30176350.22535.1344323226826.JavaMail.root@m06> <20120808071905.D9349685E@smc.vnet.net>

This may help: 'f' takes 2 or more arguments,
then passes them in 'g' in your desired order:

Clear[f, g];
f[a_, b__] := g[Apply[Sequence, Sort[{a, b}] // Reverse]]




  • Prev by Date: Re: Xcode and command line tools
  • Next by Date: Squares in Q[r], a question about algebraic numbers in mathematica
  • Previous by thread: Re: Symmetrizing function arguments
  • Next by thread: Re: Symmetrizing function arguments