Draft web text re vectors, quadrays, python, spatial geometry, crystallography, peer review solicited

david_ullrich at my-deja.com david_ullrich at my-deja.com
Sun May 28 14:34:11 EDT 2000


In article <39302E4F.64F92691 at stud.ntnu.no>,
  peter at schneider-kamp.de wrote:
> Kirby Urner wrote:
> >
>
> Hei Kirby!
>
> I do not know what your preferences for the source code, but
> there is more than one way to do the example below (do I sound
> like some p&rl-monkey?):

    Yup.

> E.g. using map and reduce:
>
> from operator import add,mul
> def dot(self,v1):
>   return reduce(add,map(mul,self.norm0(),v1.norm0()))

    Ah, that sounds better.

[...]
>
> greeting-the-lisp-fellows-ly y'rs

    Will the lisp fellows be able to follow the
*-*-*-ly syntax. ya think? (This is the one part
of Python I could never find explained in the
otherwise excellent docs.)

> Peter
> --
> Peter Schneider-Kamp          ++47-7388-7331
> Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
> N-7050 Trondheim              http://schneider-kamp.de
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list