       Re: How can I automate this problem in a mathematica notebook?

• To: mathgroup at smc.vnet.net
• Subject: [mg74058] Re: [mg74044] How can I automate this problem in a mathematica notebook?
• From: "Chris Chiasson" <chris at chiasson.name>
• Date: Thu, 8 Mar 2007 04:33:54 -0500 (EST)
• References: <200703070814.DAA26666@smc.vnet.net>

```Maximize[{answer[q],{0<q<1}},q] maximizes answer[q], not q

On 3/7/07, tnad <terry_najdi at hotmail.com> wrote:
> I was asked to automate the problem below in mathematica:
>
> I'm using a function called answer[q_] in terms of two parameters alpha and q.
>
>
> answer[q_]:= "a pretty long equation in terms of q and alpha"
>
> The maximum values of q can be obtained from this:
>
> Maximize[{answer[q], {0 < q < 1}}, q]
>
> but obviously I need to specify a value for alpha to get a maximum value for q
>
> So basically I want to plot answer[q] for values of alpha between 0.25 and 1 such that q is maximum in answer[q] (maximum q will be different for a the different alpha values).
>
> I hope someone can tell me how to code this so that it is automated in mathematica. I'm guessing this should be an easy problem for you people :)
>
>

--
http://chris.chiasson.name/

```

• Prev by Date: Re: beginner plot function with parameter
• Next by Date: Multi-core Support in Mathematica 5.2
• Previous by thread: How can I automate this problem in a mathematica notebook?
• Next by thread: Re: How can I automate this problem in a mathematica notebook?