Re: How to get the output of Minimize function in x = a format
- To: mathgroup at smc.vnet.net
- Subject: [mg68527] Re: How to get the output of Minimize function in x = a format
- From: "Norbert Marxer" <marxer at mec.li>
- Date: Wed, 9 Aug 2006 04:18:35 -0400 (EDT)
- References: <eb9pj0$t41$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello Try this: argmin[func_,x_]:=Minimize[func, x][[2,1,2]]; Clear[x];x=argmin[x^2-3x+6,x]; x Best Regards Norbert Marxer www.mec.li erkutsonmez 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