Double sum with odd number

I'm not sure how to calculate this sum. Anyone has an idea, please?
n = [1:2:1000];
gamma = 1;
ss = sum(sum((2./(n.*pi)).^6.*(3.*(1 - tanh(n.*pi./(2*gamma))./(n.*pi./(2*gamma)))) - (tanh(n.*pi./(2*gamma))).^2));

3 Comments

What does the second "sum" symbol sum over ?
I don't know. Here is the complete equation
Torsten
Torsten on 27 Jun 2023
Edited: Torsten on 27 Jun 2023
From the equation, I don't know either. But you should try to find it out.

Sign in to comment.

Answers (1)

n = [1:2:1000];
gamma = 1;
ss = sum(sum((2./(n.*pi)).^6.*(3.*(1 - tanh(n.*pi./(2*gamma))./(n.*pi./(2*gamma))) - tanh(n.*pi./(2*gamma)).^2)))
ss = 0.0272

3 Comments

The image shows odd values for n in outer summation, but does not tell anything about nature of inner summation. Can you tell more about it ? Does it mean both inner & outer summation are both odd values for n, or ?
I don't know. Here is the complete equation
Ok, it looks like its double sum over odd integer values for that term as you assumed it i.e.
n = [1:2:1000];

Sign in to comment.

Tags

Asked:

on 27 Jun 2023

Commented:

on 27 Jun 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!