MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to get the output of Minimize function in x = a format


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


  • Prev by Date: Re: How to get the output of Minimize function in x = a format
  • Next by Date: Re: How to get the output of Minimize function in x = a format
  • Previous by thread: OT arbitrary dimension array for math
  • Next by thread: Re: for higher dimensions?