Question: defining an initial condition for an array

Hi guys. I hope i do this correctly... So I want to have this: f(p) := proc( p ) if p::even then print(((((p)!)/((2^(p/2))*(p/2)!))^2)) else print(0) end if end proc: as an initial condition, b[p,0], for an array, b := array(0..500, 0..500). It doesn't work if I just do a for loop. At least I don't think it works; say I do for p from 0 to 500 do b[p,0] := proc( p ) if p::even then print(((((p)!)/((2^(p/2))*(p/2)!))^2)) else print(0) end if end proc od: Then when I try b[4,0]; it just returns b[4,0], and not 9. Any pointers would be very much appreciated. Thanks, Tom
Please Wait...