Nov 25, 2012 Thread starter #1 D dwsmith Well-known member Feb 1, 2012 1,673 Code: A = Piecewise[{Table[ 8/Pi^2*m*(-1)^m/((2*n - 1)*((2*n - 1)^2 + m^2)), {n, 1, Nmax}, {m, 1, Mmax}],(odd)}, {0,(even)}] What can I do take make this piecewise assignment understand even and odd integer multiplies of n??

Code: A = Piecewise[{Table[ 8/Pi^2*m*(-1)^m/((2*n - 1)*((2*n - 1)^2 + m^2)), {n, 1, Nmax}, {m, 1, Mmax}],(odd)}, {0,(even)}] What can I do take make this piecewise assignment understand even and odd integer multiplies of n??