f3   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/contrib/cas.xtm

Implementation

;; watch for CAS calls that take and return vectors
(bind-func f3
  (lambda (x y z)
    (grad (+ (pow x 2)
             (pow y 3)
             (pow z 4))
          (vector x y z))))


Back to Index

Similar Entries