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

Next Comment >Help | Reply To Topic
Author Comment/Response
Tony
10/07/08 7:18pm

I am having problems with getting /. to work with a summation. Here is the command I am trying to do:

Sum[((Binomial[12, i]*Binomial[40, n - i])/Binomial[52, n]), {i, 1,
n}]/.n->{0,1,2,3,4,5}

It sits for a long time and then spits out a long mess. If I replace the n in "{i, 1, n}" with each value that I want, it goes very quick and gives what I am looking for. Any thoughts?

URL: ,

Subject (listing for 'ReplaceAll')
Author Date Posted
ReplaceAll Tony 10/07/08 7:18pm
Re: ReplaceAll rc 10/10/08 1:07pm
Re: ReplaceAll yehuda ben-s... 10/12/08 07:32am
Re: ReplaceAll Tony 10/13/08 2:27pm
Next Comment >Help | Reply To Topic