How Can I Program a Series Using Pi in Matlab?

Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views · last reply
AronFridrik
Messages
1
Reaction score
0
How can I program this series

Equation: pi^2/16 = sum from n=1 to infinity of 1/(2n-1)^2 + ... , rendered as a typeset formula with a summation over n from 1 to infinity of 1 divided by (2n+1)^2 type terms.


the n looking symbol is Pi


thanks in advance
Aron
 
Physics news on Phys.org
Here you go.
Code:
n = 1:1000;
sum(1./((2*n-1).^2.*(2*n+1).^2))