Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'sphere' topicStudent Support Forum > General > Archives > "sphere"

Next Comment >Help | Reply To Topic
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: ,

Subject (listing for 'sphere')
Author Date Posted
sphere RAFFA 10/10/11 11:04am
Re: sphere Peter Pein 10/10/11 5:16pm
Next Comment >Help | Reply To Topic