: ) wonderful world ( :

the metasyntactic variable

Archive for the ‘compalg’ Category

chain rule once again

leave a comment »

Encore une fois…

g:Rm→Rn∧f:Rn→Rk
“D(f)@g”∈Rm→Rk x n∧ D(g)∈Rm→Rn x m

It means that D(h) contains the partial differentials as columns and components as rows.

Written by grault

November 4, 2007 - 9:10 pm at November 4, 2007 - 9:10 pm

Posted in compalg, maple, math

chain rule

leave a comment »

$ maple
    |\^/|     Maple 7 (IBM INTEL LINUX)
._|\|   |/|_. Copyright (c) 2001 by Waterloo Maple Inc.
 \  MAPLE  /  All rights reserved. Maple is a registered trademark of
 <____ ____>  Waterloo Maple Inc.
      |       Type ? for help.
> D(f@g);
                                ((D(f))@g) D(g)

> quit
bytes used=320280, alloc=327620, time=0.02
$

Written by grault

November 4, 2007 - 2:03 pm at November 4, 2007 - 2:03 pm

Posted in compalg, linux, maple, math

infix notation

leave a comment »

(defun infixify (op parlist &optional (coll '()))
  (if (null parlist)
      coll
      (infixify op
                (cdr parlist)
                (append coll
                        (list (car parlist))
                        (if (not (null (cdr parlist)))
                            (list op))))))

Written by grault

November 2, 2007 - 12:39 pm at November 2, 2007 - 12:39 pm

Posted in compalg, lisp

Follow

Get every new post delivered to your Inbox.