Re: Solving equation and applying solution(s) expression.
- To: mathgroup at smc.vnet.net
- Subject: [mg84564] Re: Solving equation and applying solution(s) expression.
- From: "David Park" <djmpark at comcast.net>
- Date: Thu, 3 Jan 2008 20:34:00 -0500 (EST)
- References: <flidj5$fcc$1@smc.vnet.net>
Copy the following statements into a Mathematica notebook and evaluate. The first statement solves the equation a returns a list of replacement rules, which we save as xsols. xsols=Solve[3x^2-2x+8==0] Then we can substitute the solutions, xsols, into any expression using the ReplaceAll command, '/.' and simplify. 3x/(x^3+2)/.xsols FullSimplify[%] -- David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ "KP" <MathematicaUser at gmail.com> wrote in message news:flidj5$fcc$1 at smc.vnet.net... > Hi Everybody. I am a new subscriber to this group and looking forward > to learning from folks who use Mathematica. I have a question and some > help will be appreciated..... > > I want to solve an equation and then apply the solution(s) of the > equation to an expression. For example, I want to solve 3 x^2 - 2 x + > 8 =0. Then I want to apply the solutions to the expression 3 x / (x^3 > +2). > > The equation and the expression above are examples I used to > illustrate my question. Please use the equation and the expression to > help me out. Thank you and happy new year! > > --KP >