Re: How to Eliminate

• To: mathgroup at smc.vnet.net
• Subject: [mg75229] Re: How to Eliminate
• From: "Dana DeLouis" <dana.del at gmail.com>
• Date: Sat, 21 Apr 2007 23:08:43 -0400 (EDT)

```> like to know how to eliminate x ->.

Hi.  Here's just another of many options:

Solve[(x - 0.1)*(x - 0.5) == 0, x][[All,1,2]]

{0.1, 0.5}

As a function:

ValuesOnly[v_List] := v[[All,1,2]]

Solve[(x - 0.1)*(x - 0.5) == 0, x] // ValuesOnly

{0.1, 0.5}

--
HTH   :>)
Dana DeLouis
Windows XP & Mathematica 5.2

<JikaiRF at aol.com> wrote in message news:evsr25\$14h\$1 at smc.vnet.net...
> 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.

```

• Prev by Date: Greater implies unequal?
• Next by Date: Re: Optimisation of FourierCoefficients
• Previous by thread: Re: How to Eliminate