Re: Defining function with indexed variables
- To: mathgroup at smc.vnet.net
- Subject: [mg99328] Re: [mg99300] Defining function with indexed variables
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Sun, 3 May 2009 05:19:34 -0400 (EDT)
- References: <200905020958.FAA15353@smc.vnet.net>
- Reply-to: drmajorbob at bigfoot.com
How about f[] = 0; f[x__] := {x}.{x} The first line is optional. Bobby On Sat, 02 May 2009 04:58:57 -0500, Paul Smith <phhs80 at gmail.com> wrote: > Dear All, > > How can one define the function > > f(x1,x2,...,x100) := x1^2 + x2^2 + ... + x100^2 > > using superscripts? > > Thanks in advance, > > Paul > -- DrMajorBob at bigfoot.com
- References:
- Defining function with indexed variables
- From: Paul Smith <phhs80@gmail.com>
- Defining function with indexed variables