Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

F[x1_,x2_,...,x99_]:=expr

How to write this Function in mathematica whithout complete write it?

share|improve this question

marked as duplicate by Kuba, Mr.Wizard Apr 22 at 18:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

ClearAll[f];
n = 10;
Evaluate[f @@ Table[With[{s = Symbol["x" <> ToString[i]]}, Pattern[s, Blank[]]], {i, n}]] :=
  Evaluate[Plus @@ (Sin@Table[s = Symbol["x" <> ToString[i]], {i, n}])]

?f

Mathematica graphics

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.