]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
maxima: Add function lu() as short for lu factorization.
authorSimon Ruderich <simon@ruderich.org>
Fri, 3 Jun 2011 09:27:10 +0000 (11:27 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 3 Jun 2011 09:27:10 +0000 (11:27 +0200)
maxima/maxima-init.mac

index 438989f1e567c4262931af244ee9e017065cd7ac..df7c66bd91fde1ccfdfaee832b4e949c4fe38594 100644 (file)
@@ -17,4 +17,7 @@ load (descriptive);
  * matrices. */
 norm_2(x) := sqrt(maxi(eigenvalues(transpose(x) . x)[1]));
 
+/* Shortcut to perform lu factorization. */
+lu(x) := block(x : lu_factor(x), get_lu_factors(x));
+
 /* vim: ft=maxima */