]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
maxima/maxima-init.mac: Minor style fix.
authorSimon Ruderich <simon@ruderich.org>
Sat, 18 Feb 2012 22:30:02 +0000 (23:30 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 18 Feb 2012 22:31:45 +0000 (23:31 +0100)
maxima/maxima-init.mac

index 586cb32db238135fe1f001cd9b1fefd282fb50f4..01cf66ead41e1ce7c16e5ca4d642afd3352323ae 100644 (file)
@@ -30,7 +30,7 @@ norm(x) := sqrt(transpose(x) . x);
 /* Maxima's mat_norm() can't calculate the 2-norm. Thanks to Wolfgang Lindner
  * (http://www.ma.utexas.edu/pipermail/maxima/2007/006300.html) for an
  * improved version. */
-mat_norm2(x) := sqrt(lmax(eigenvalues(transpose(conjugate(x)).x)[1]));
+mat_norm2(x) := sqrt(lmax(eigenvalues(transpose(conjugate(x)) . x)[1]));
 
 /* Shortcut to perform lu factorization. */
 lu(x) := block(x : lu_factor(x), get_lu_factors(x));