Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

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
> 
> 


  • Prev by Date: Re: integral to table values
  • Next by Date: Re: Complete solution to a modular System of equations ( Correction)
  • Previous by thread: Re: integral to table values
  • Next by thread: Outputting MatrixForm to Word