octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #54303] expm([]) results in error rather than


From: anonymous
Subject: [Octave-bug-tracker] [bug #54303] expm([]) results in error rather than []
Date: Fri, 13 Jul 2018 03:57:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #1, bug #54303 (project octave):

Oh, another small issue found in the test case of "expm.m"

It seems that "assert (expm (10), expm (10))" is useless.
Does it mean "assert (expm (10), exp (10))" ?


--- a/scripts/linear-algebra/expm.m
+++ b/scripts/linear-algebra/expm.m
@@ -146,7 +149,7 @@
 %!assert (norm (expm ([1 -1;0 1]) - [e -e; 0 e]) < 1e-5)
 %!assert (expm ([1 -1 -1;0 1 -1; 0 0 1]), [e -e -e/2; 0 e -e; 0 0 e], 1e-5)
 
-%!assert (expm (10), expm (10))
+%!assert (expm (10), exp (10))
 %!assert (full (expm (eye (3))), expm (full (eye (3))))
 %!assert (full (expm (10*eye (3))), expm (full (10*eye (3))), 8*eps)
 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?54303>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]