MathGroup Archive 1995

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

Search the Archive

Re: Simple Solve Question

  • To: mathgroup at
  • Subject: [mg384] Re: [mg350] Simple Solve Question
  • From: gdelfino at (Gustavo Delfino)
  • Date: Fri, 30 Dec 1994 18:07:19 -0400

>Dear MathGroupers-
>    I have a very simple question.
>Why when you issue
>Solve[5 x==10, x]
>Does MMA return:
>I'm wondering why it's List[List[...]].
>I hate using Flatten to get rid of this nested List.
>Thanks in advance,

Hello Daryl, instead of writing:

Flatten[Solve[5 x==10, x]]

you can write:

Solve[5 x==10, x][[1]] or x/.Solve[5 x==10, x][[1]]


|Gustavo Delfino          |gdelfino at|
|Universidad Metropolitana|  CompuServe: 73000,1127|
|Ingenieria Mecanica      |      FAX:(582) 963-7726|
|Caracas, Venezuela       |                        |

  • Prev by Date: Re: Mutiple delete in lists
  • Next by Date: FindMinimum in specified range if gradient cannot be found symbolically
  • Previous by thread: Re: Mutiple delete in lists
  • Next by thread: Re: Re: Simple Solve Question