On 03.04.2009 17:54, Fredrik Lundh wrote: > On Fri, Apr 3, 2009 at 5:10 PM, abel deuring <adeur...@gmx.net> wrote: > >> Use either: >> >> from math import cos >> x = cos(1) >> >> or >> >> import math >> x = math.cos(1) > > That doesn't work with ImageMath.eval - it provides its own > environment (including the names you pass in).
whoops... right, I missed the ImageMath.eval stuff completely. <note target="self">Deuring, read these questions more carefully!</note> Abel > > It does the trick if you're using "point" instead, though. > > </F> > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig