Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4623 > unrolled thread
| Started by | Ethan Dyer <ethansdyer@gmail.com> |
|---|---|
| First post | 2011-08-28 08:05 +0000 |
| Last post | 2011-08-28 08:05 +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.
Re: Function of N variable Ethan Dyer <ethansdyer@gmail.com> - 2011-08-28 08:05 +0000
| From | Ethan Dyer <ethansdyer@gmail.com> |
|---|---|
| Date | 2011-08-28 08:05 +0000 |
| Subject | Re: Function of N variable |
| Message-ID | <j3csso$5jt$1@smc.vnet.net> |
Sam,
Mathematica allows one to define functions that take an arbitrary number of arguments using double underscore (BlankSequence) or triple underscore (BlankNullSequence)
For instance F[args__]:={args} takes in any number of arguments except zero.
A function defined with three underscores can take any number including zero.
Ethan
On Aug 27, 2011, at 8:17 AM, Sam Takoy <sam.takoy@yahoo.com> wrote:
> Hi,
>
> I have put together a few function for differential geometry in 3D.
> All my functions were of the kind F(z1_, z2_, z3_). Now I want to
> generalize to 4D, then 5D, etc. Is there a good way to represent a
> function of N variables? For example, I want to be able to say grad[F]
> [???] to obtain a list of N function (partial derivatives) of N
> variables. I understand these are vague questions, but I am only
> looking for some keywords.
>
> Many thanks in advance,
>
>
> Sam
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web