Group Abstract Group Abstract

Message Boards Message Boards

0
|
11.1K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Define a function of many variables

Posted 5 years ago
POSTED BY: Brian Tenneson
3 Replies
Anonymous User
Anonymous User
Posted 5 years ago
POSTED BY: Anonymous User
Anonymous User
Anonymous User
Posted 5 years ago
POSTED BY: Anonymous User
Posted 5 years ago
f[x__] := With[{args = {x}}, Sum[args[[i]], {i, Length@args}]]

f[1, 2, 3, 4, 5]
(* 15 *)
POSTED BY: Hans Milton
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard