Re: how to get the table
- To: mathgroup at smc.vnet.net
- Subject: [mg75159] Re: how to get the table
- From: dimitris <dimmechan at yahoo.com>
- Date: Thu, 19 Apr 2007 04:26:55 -0400 (EDT)
- References: <f04nsv$8pb$1@smc.vnet.net>
Hi.
Before posting Mathematica code convert everything (both Input & Output) to
InputForm.
This is very easy. Just select the cells and press Shift+Ctrl+I.
I was not able to get your function. But it doesn't matter what your
function
but you search for.
So...you could try
In[28]:=
lst = Range[0, 3, 0.2]
Out[28]=
{0, 0.2, 0.4, 0.6000000000000001, 0.8, 1., 1.2000000000000002,
1=2E4000000000000001, 1.6, 1.8, 2., 2.2, 2.4000000000000004, 2.6,
2=2E8000000000000003, 3.}
In[27]:=
g[f_, x_] := {x, f}
In[38]:=
(g[Cos[#1] + Sin[#1] + Exp[#1], #1] & ) /@ lst
Out[38]=
{{0, 2}, {0.2, 2.4001386667964724}, {0.4, 2.8023040339528063},
{0.6000000000000001, 3.212096888695223},
{0.8, 3.6396037287391563}, {1., 4.100055119135082},
{1.2000000000000002, 4.614513763180447},
{1.4000000000000001, 5.210616839733376}, {1.6, 5.923406505135331},
{1.8, 6.796293000598054}, {2., 7.882206689209189},
{2.2, 9.245008785998365}, {2.4000000000000004, 10.96124584565151},
{2.6, 13.122350653454209},
{2.8000000000000003, 15.837412580584301}, {3., 19.23666443464709}}
In[39]:=
(TableForm[#1, TableHeadings -> {None, {"x", "f[x]"}}] & )[%]
Out[39]//TableForm=
TableForm[{{"x", "f[x]"}, {0, 2}, {0.2, 2.4001386667964724}, {0.4,
2=2E8023040339528063}, {0.6000000000000001, 3.212096888695223},
{0.8, 3.6396037287391563}, {1., 4.100055119135082},
{1.2000000000000002, 4.614513763180447},
{1.4000000000000001, 5.210616839733376}, {1.6, 5.923406505135331},
{1.8, 6.796293000598054}, {2., 7.882206689209189},
{2.2, 9.245008785998365}, {2.4000000000000004, 10.96124584565151},
{2.6, 13.122350653454209},
{2.8000000000000003, 15.837412580584301}, {3., 19.23666443464709}},
TableHeadings -> {None, {"x", "f[x]"}}]
=CF/=C7 bhargavi =DD=E3=F1=E1=F8=E5:
> hi..to everyone,
> my doubt is,i have one expression,interms of one variable x.
> \!\(f \((x)\) = \(-\(\(12\ \((1 + \[ExponentialE]\^\(1\/\@x\) - 2\ \((\
> (-1\) \
> + \[ExponentialE]\^\(1\/\@x\))\)\ \@x)\)\^2\)\/\(\((1 + \
> \[ExponentialE]\^\(1\/\@x\))\)\^2 - 24\ \((1 + 3\ \[ExponentialE]\^
> \(1\/\@x\) \
> + \[ExponentialE]\^\(2\/\@x\))\)\ x +
> 60\ \((\(-1\) + \[ExponentialE]\^\(2\/\@x\))\)\ x\^\(3/2\)
> \)\)\)\),
> this is the exp.i wann to get the values of f(x) at
> x=0,0.02,0.04,0.06,0.08,0.1.
> i tried in the table format.i got only onvalues of f(x).plz tell me
> this kind of range or any other range of x,how to get the f(x).
> thanking you.
> bhargavi.