Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68541] Re: How to get the output of Minimize function in x = a format
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Wed, 9 Aug 2006 04:19:25 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <eb9pj0$t41$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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
> 

x = x /. Minimize[x^(2) - 3*x + 6, x][[2]]

--> 3/2

Might be worthwhile to, at least, glance at Section 2.5: "Transformation 
Rules and Definitions" of the Mathematica Book.
http://documents.wolfram.com/mathematica/book/section-2.5

HTH,
Jean-Marc


  • Prev by Date: Re: MemberQ
  • Next by Date: Re: NDSolve with boundary condition(s) at infinity?
  • Previous by thread: RE: How to get the output of Minimize function in x = a format
  • Next by thread: Re: How to get the output of Minimize function in x = a format