Welcome to our community

Be a part of something great, join today!

Piecewise even/odd mathematica

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??