Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #11286
| From | James Stein <mathgroup@stein.org> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Symmetrizing function arguments |
| Date | 2012-08-09 01:36 +0000 |
| Message-ID | <jvv466$pqq$1@smc.vnet.net> (permalink) |
| References | <30176350.22535.1344323226826.JavaMail.root@m06> <20120808071905.D9349685E@smc.vnet.net> |
| Organization | Time-Warner Telecom |
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]]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Symmetrizing function arguments James Stein <mathgroup@stein.org> - 2012-08-09 01:36 +0000
csiph-web