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.