| Author |
Comment/Response |
RAFFA
|
10/10/11 11:04am
If i write this:
atom[n_] := {Yellow, Specularity[1, 20], Sphere[r[n], 0.25]};
it is ok,but if i write this
p[0] = 0.1; p[1] = 0.25; p[2] = 0.25; p[3] = 0.25; p[4] = 0.25;
p[5] = 0.25; p[-6] = 0.25; p[-7] = 0.25; p[-8] = 0.25; p[6] = 0.25; p[7] = 0.25; p[8] = 0.25;
atom[n_] := {Yellow, Specularity[1, 20], Sphere[r[n], p[n]]};
it doesn't work. Why?
Attachment: all code.nb, URL: , |
|