MathGroup Archive 2005

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

Search the Archive

Re: integral to table values

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60527] Re: integral to table values
  • From: albert <awnl at arcor.de>
  • Date: Mon, 19 Sep 2005 04:45:44 -0400 (EDT)
  • References: <dgitq8$2f2$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

> But, how can I get a TABLE of data? I want to vary the upper limit (h)
> over a range from 0 to 2.

If you need a table, why not look for Table in the online help :-) ?

This should do what you want:

Table[{h, Integrate[Sqrt[2x - x^2], {x, 0, h}]}, {h, 0, 1, 0.1}]

And that makes it look nicer:

TableForm[%]

In fact, Mathematica (5.1 on Linux) produces very small imaginary parts for
this integral. These you can get rid of with Chop:

Table[{h, Chop[Integrate[Sqrt[2x - x^2], {x, 0, h}]]}, {h, 0, 1, 0.1}]

albert



  • Prev by Date: Differences between recursions and limit
  • Next by Date: Re: Re: plots with variation of arbitrary constant
  • Previous by thread: Re: integral to table values
  • Next by thread: Re: integral to table values