Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. W[n_,m_]/;f[n]==g[m]:=1
  2. W[n_,m_]/;f[n]!=g[m]:=2
  3. Table[W[n,m],{n,1,4},{m,1,4}]
  4.  
  5. W[n_,m_]/;n==g[m]:=1
  6. W[n_,m_]/;n!=g[m]:=2
  7. Table[W[n,m],{n,1,4},{m,1,4}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement