Message Boards Message Boards

Linear algebra & Calculus& equation

Posted 11 years ago
How can I Insert this expression in mathematicaas shown in the photo?
POSTED BY: Ahmed Al-Ali
3 Replies
f[j_] := Sum[2/(i - j), {i, Complement[Range[100], {j}]}]
POSTED BY: Frank Kampas
It is work very well ,, thank you very much indeed
POSTED BY: Ahmed Al-Ali
An alternative (Mathematica is so flexible):
f[j_] := Total[2/(Drop[Range[100], {j}] - j)]
POSTED BY: Michael Rogers
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract