Re: integral to table values
- To: mathgroup at smc.vnet.net
- Subject: [mg60511] Re: [mg60500] integral to table values
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Mon, 19 Sep 2005 04:45:31 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
f[h_]=Integrate[Sqrt[2x-x^2],{x,0,h}, Assumptions->{0<h<=2}] TableForm[ Table[ NumberForm[#,{4,3}, NumberPadding->{"","0"}]&/@ {h,f[h]}, {h,0,2,0.1}], TableHeadings->{None,{"h","val"}}, TableAlignments->Center] Bob Hanlon > > From: poster at giganews.com To: mathgroup at smc.vnet.net > Date: 2005/09/18 Sun AM 01:15:54 EDT > Subject: [mg60511] [mg60500] integral to table values > > I can integrate the following expression. > > Integrate[Sqrt[2x - x^2], {x, 0, 2}] > > But, how can I get a TABLE of data? I want to vary the upper limit (h) > over a range from 0 to 2. > > Ultimately, the table should look like this. > > h val > ----- ----- > 0.000 0.000 > 0.100 0.029 > > .... > > 1.000 0.785 > > .... > > 0.800 0.586 > 1.900 1.541 > 2.000 1.570 > > I have tried substituting a list "{0.1, 0.2, 0.3,}" for the "2" above, > but this does provide the desired result. > > Thanks for your help. > Dennis > >