User Portlet User Portlet

Discussions
Hi I'm trying to construct a tridiagonal matrix which contains a function f(x,y)=2(cos x+cosy). My code is: Nmax = 2; For[iw = 1, iw iw + 2 (Cos[x] + Cos[y]), {i_, j_} /; j - i == 1 :> 1, {i_, j_} /; i - j == 1 :>...