Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Piecewise defined for even and odd n' topicStudent Support Forum > General > "Piecewise defined for even and odd n"

Next Comment >Help | Reply To Topic
Author Comment/Response
dustin
11/25/12 4:37pm

A = Piecewise[{Table[
8/Pi^2*m*(-1)^m/((2*n - 1)*((2*n - 1)^2 + m^2)), {n, 1,
Nmax}, {m, 1, Mmax}],(n odd)}, {0,(n even)}];

I want A to be this expression when n is odd and 0 when n is even regardless of what m is.
How can I set this up?

URL: ,

Subject (listing for 'Piecewise defined for even and odd n')
Author Date Posted
Piecewise defined for even and odd n dustin 11/25/12 4:37pm
Re: Piecewise defined for even and odd n yehuda 11/28/12 01:20am
Next Comment >Help | Reply To Topic