| Author |
Comment/Response |
Dave Gaebler
|
03/06/12 10:59am
In Response To 'Re: Max with variable number of inputs' --------- Thanks for the help! I got your code to run successfully and find the maximum of the product for any fixed number of factors. I'm still unsure how to take things the next step and try to maximize when the number of factors is allowed to vary. I tried to do
Maximize[maxFn[j],j]
with various modifications, but always got some kind of error message to the effect that I was putting variables where it wanted a number or vice versa. I'm quite the novice with Mathematica so I don't know how to tell it to maximize maxFn over all values of j. It sounds like that might be a very long computation anyway, since the time grows quickly even for specific small values of j.
URL: , |
|