Skip to content

Instantly share code, notes, and snippets.

@davidshepherd7
Created November 18, 2012 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidshepherd7/4105231 to your computer and use it in GitHub Desktop.
Save davidshepherd7/4105231 to your computer and use it in GitHub Desktop.
1.31 Velocity Transformation
;; Just use the transformation from the example then pull out the velocity from the tuple.
(define (velocity-transform coordinate-transform)
(compose (lambda (tuple) (velocity tuple)) (F->C coordinate-transform)))
;; ;; Or explicitly using Gamma-bar this is:
;; (define (velocity-transform coordinate-transform)
;; (define (f-bar q-prime)
;; (define q (compose coordinate-transform (Gamma q-prime)))
;; (Gamma q))
;; (compose (lambda (x) (velocity x)) (Gamma-bar f-bar)))
(show-expression
((velocity-transform p->r)
(->local 't (up 'r 'theta) (up 'rdot 'thetadot))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment