Mathematica 7 compares to other languages

the.brown.dragon.blog at gmail.com the.brown.dragon.blog at gmail.com
Mon Dec 15 02:46:30 EST 2008


On Dec 12, 12:12 am, Xah Lee <xah... at gmail.com> wrote:
> On Dec 11, 6:50 am, the.brown.dragon.b... at gmail.com wrote:
> ;; Chicken Scheme. By the.brown.dragon... at gmail.com
> (require 'srfi-1)
> (define (normalize vec)
>   (map (cute / <> (sqrt (reduce + 0 (map (cute expt <> 2) vec))))
> vec))
>
> Is it possible to make it work in scsh? (i'm running scsh 0.6.4, and
> don't know Scheme lisp well)
>
>   Xah
>http://xahlee.org/
>
>
I don't have scsh but yes - it should work fine. "cute" is an SRFI
(http://srfi.schemers.org/srfi-26/) which should be available.

cheers,
BD



More information about the Python-list mailing list