Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg30420] How to do a simple loop?
  • From: vnagornyi at (Vadim Nagornyi)
  • Date: Fri, 17 Aug 2001 03:09:57 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

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:

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

but how to iterare this?


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