Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Max with variable number of inputs' topicStudent Support Forum > General > Archives > "Max with variable number of inputs"

< Previous CommentHelp | Reply To Comment | Reply To Topic
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: ,

Subject (listing for 'Max with variable number of inputs')
Author Date Posted
Max with variable number of inputs Dave Gaebler 02/21/12 12:08pm
Re: Max with variable number of inputs toen 02/22/12 09:22am
Re: Re: Max with variable number of inputs Dave Gaebler 03/06/12 10:59am
< Previous CommentHelp | Reply To Comment | Reply To Topic