Re: How to Eliminate
- To: mathgroup at smc.vnet.net
- Subject: [mg75063] Re: [mg75053] How to Eliminate
- From: bsyehuda at gmail.com
- Date: Mon, 16 Apr 2007 04:09:34 -0400 (EDT)
Here are two immediate solutions for the solution of x^2+3x+2==0
one is a functional programming approach and the other is based on pattern
matching
x/.#&/@Solve[x^2+3x+2==0,x]
and
Solve[x^2+3x+2==0,x]/.{x_->y_}:>y
regards
yehuda
On 4/15/07, JikaiRF at aol.com <JikaiRF at aol.com> wrote:
>
> Dear Members:
> When I use "Solve" in order to solve polynomials with high orders, its
> solutions are usually reterned in terms of a pair of nested braces,
> like {{x -> 0.1}, {x -> 0.5}}. In this situation, I would like to
> obtain a pair of braces such as {0.1, 0.5}. In other words, I would
> like to know how to eliminate x ->.
> How can I obtain my result?
>
> Sincerely
> F. Takata.
>
>
>