Re: How to get the output of Minimize function in x = a format
- To: mathgroup at smc.vnet.net
- Subject: [mg68513] Re: [mg68502] How to get the output of Minimize function in x = a format
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Wed, 9 Aug 2006 04:17:56 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Clear[x];
x=x/.Minimize[x^2 - 3x + 6, x][[2]]
3/2
Bob Hanlon
---- erkutsonmez <erkuts at gmail.com> wrote:
> Say that,I have the following minimization problem
>
> Minimize[x^2 - 3x + 6, x]
>
> which gives me the x value that minimizes the expression in the format
> of
>
> {x -> 3\2}.
>
>
> I want to get the result in the format of x = 3/2 before seeing the
> result . What should i do?
>
> In other words i want x = argmin[x^2 - 3x + 6, x], how should i code
> it?
>
> Thanks for help,
>
> Best
> Erkut
>
--
Bob Hanlon
hanlonr at cox.net