Re: Simple Solve Question
- To: mathgroup at christensen.cybernetics.net
- Subject: [mg384] Re: [mg350] Simple Solve Question
- From: gdelfino at conicit.ve (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: >{{x->2}} > >I'm wondering why it's List[List[...]]. > >I hate using Flatten to get rid of this nested List. > >Thanks in advance, >Daryl 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]] bye |Gustavo Delfino |gdelfino at dino.conicit.ve| |Universidad Metropolitana| CompuServe: 73000,1127| |Ingenieria Mecanica | FAX:(582) 963-7726| |Caracas, Venezuela | |