Advertisement
chemoelectric

Implicitizing a spline in Sorts Mill Editor

Mar 18th, 2013
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Implicitizing the quadratic spline x(t) = 1 + t², y(t) = -2 + 2t + t²:
  2.  
  3. crud:64 trashman: guile -c '(import (sortsmill)(ice-9 pretty-print))(with-matrix-svd-algorithm (quote modified-golub-reinsch) (call-with-values (lambda () (poly:pretty-print-implicit-equation (poly:implicit-equation (poly:bezout-matrix #(1 0 1) #(-2 2 1))))) (lambda args (setlocale LC_ALL "")(pretty-print args)) ))'
  4. ("-13 + 10x + -6y + -x² + 2xy + -y²")
  5.  
  6. (The svd stuff is just boilerplate in the command I run lately out of my zsh history. It’s not actually used here.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement