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

Next Comment >Help | Reply To Topic
Author Comment/Response
Jung Min
12/14/11 06:18am

Hello guys does anyone knows how to define an arbitrary number of variables in an array?
That is how do I program in the following:
f(x1, x2, ..., xn) = f(x1 - 1, x2, ... , xn) + f(x1, x2 - 1, ... , xn) + ... + f(x1 - 1, x2, ... , xn-1)
The key is I don't want to fix the value of n...
Thanks a lot!

[partial answer in;
related to

I think the new twist is to have code that generates the sum but to not build the sum until n is known. If Jung Min wants to evaluate the sum without knowing n, that could be hard.
- Forum Moderator]

URL: ,

Subject (listing for 'Mathematica programming')
Author Date Posted
Mathematica programming Jung Min 12/14/11 06:18am
Re: Mathematica programming Quinn McKinsey 12/14/11 5:04pm
Re: Mathematica programming Peter Pein 12/15/11 3:37pm
Re: Mathematica programming Jung Min 12/18/11 08:51am
Next Comment >Help | Reply To Topic