I should have thought of that! Here I looked at the concept of generators,
what they can do, and totally overlooked a user defined range type function
that allows floats. Any reason why range doesn't? Is it for speed, or to
keep the arguments pure (without floating point errors)?
Jacob
There ar
On Thu, 3 Feb 2005, alieks laouhe wrote:
> from math import *
> z=0
> while z<=2*pi:
> print cos(z)
> z=z+(pi/6)
>
> ok i think this is right...
Hi Alieks,
This looks ok, and is probably the most straightforward way to do this.
For safety's sake, you may want to modify the top i
from math import *
z=0
while z<=2*pi:
print cos(z)
z=z+(pi/6)
ok i think this is right...
__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail
_