Re: How to remove curly brackets and arrow symbols from a list.
- To: mathgroup at smc.vnet.net
- Subject: [mg58212] Re: [mg58204] How to remove curly brackets and arrow symbols from a list.
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Thu, 23 Jun 2005 05:33:48 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
f[x_]:=a*x^2+b*x*p+d;
w=x/.Solve[f[x]==0,x];
Table[Prepend[w,p],{p,0,10}]//TableForm
Bob Hanlon
>
> From: "T. K. Ghosh" <tkghosh at mp.okayama-u.ac.jp>
To: mathgroup at smc.vnet.net
> Date: 2005/06/22 Wed AM 01:55:54 EDT
> To: mathgroup at smc.vnet.net
> Subject: [mg58212] [mg58204] How to remove curly brackets and arrow symbols from
a list.
>
> Hi Math Guru,
>
> I will be very happy if you could help me to solve the following problem.
> The simplified version of my problem is the following.
> I have a quadratic equation with a parameter, say "p".
>
> Define the function:
> f[x_] := A*X^2 + B*X*p + D with A, B and D are given.
> "p" is a parameter.
> I solve this equation for a given p:
> w = Solve[f[x]] == 0, X].
> Now I want to make a Table for the solutions of this
> quadratic equation for different values of "p".
> So I write,
> Table[{p,sol},{p,0,10,1}.
> I will get a table which will look like,
> 0 {w -> a} {w -> -a}
> 1 {w -> b} {w -> -b}
> 2 {w -> c} {w -> -c}
> and so on.........
>
> How can I remove the curly brackets and the arrow symbol
> from the TableForm? I would like to plot the 1st column
> vs. 2nd or 3rd column. I must remove those brackets.
> and I wish to get the following form:
> 0 a -a
> 1 b -b
> 2 c -c
>
>
> Hope this can be done easily which I am not aware.
> Any suggestion/solution to this problem is most welcome.
> Thanking you in advance.
> TKG.
>
>