Re: how to get the table 2

• To: mathgroup at smc.vnet.net
• Subject: [mg75170] Re: how to get the table 2
• From: dimitris <dimmechan at yahoo.com>
• Date: Thu, 19 Apr 2007 04:32:33 -0400 (EDT)
• References: <f04nsv\$8pb\$1@smc.vnet.net>

```Or even better

In[1]:=
matab[f_, lis_] := ({#1, Through[f[#1]]} & ) /@ lis

In[5]:=
TableForm[matab[Cos + Sin, Range[-2*Pi, 2*Pi, Pi/2]]]
Out[5]//TableForm=
TableForm[{{-2*Pi, 1}, {-((3*Pi)/2), 1}, {-Pi, -1}, {-(Pi/2), -1}, {0,
1}, {Pi/2, 1}, {Pi, -1}, {(3*Pi)/2, -1}, {2*Pi, 1}}]

Regards
Dimitris

Out[5]//TableForm=
TableForm[{{-2*Pi, 1}, {-((3*Pi)/2), 1}, {-Pi, -1}, {-(Pi/2), -1}, {0,
1}, {Pi/2, 1}, {Pi, -1}, {(3*Pi)/2, -1}, {2*Pi, 1}}]
=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.

```

• Prev by Date: Re: neat way to program minimum of sum
• Next by Date: Re: how make function of solution by NDSolve depending on parameter?
• Previous by thread: Intersection question
• Next by thread: Re: how to get the table 2