Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*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 2001

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

Search the Archive

How to do a simple loop?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30420] How to do a simple loop?
  • From: vnagornyi at netscape.net (Vadim Nagornyi)
  • Date: Fri, 17 Aug 2001 03:09:57 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Still using 2.2 ...
OK, I have a function that depends on an integer, for example F=x*i-i.
For i ranging from 1 to 100 I need to perform the following:

1. Display the function equation.
2. Plot the function in the range 0...i
3. Find the integral of the function for the same range.

The loop body looks simple:

F
Plot[F, {x, 0, i}]
Integrate [F, {x, 0, i}]

but how to iterare this?

Thanks,
Vadim.


  • Prev by Date: NIntegrate and Plot
  • Next by Date: Pentium 3 versus Pentium, also memory, bus speeds
  • Previous by thread: Re: NIntegrate and Plot
  • Next by thread: Re: How to do a simple loop?