Menu

#1252 matrix ^ zero

open
nobody
Lisp Core (457)
3
2008-06-15
2007-08-08
No

We have

(%i1) matrix([0])^0;
(%o1) matrix([1])

but

(%i2) 0^0;
0^0 has been generated -- an error.

Similarly, [0]^0 --> [1].

(%o1) disagrees with the user documentation for
domxexpt. I think the code should be changed to
match the documentation --- the matrix ^ xxx code
in simpexpt should be changed to simply map the
power function onto the matrix elements.

Discussion

  • Stavros Macrakis

    Logged In: YES
    user_id=588346
    Originator: NO

    What about matrix([0])^^0? This currently gives matrix([1]). I'd think that <singular>^^0 would be just as undefined as 0^0.

    -s

     
  • Robert Dodier

    Robert Dodier - 2008-06-15
    • labels: --> Lisp Core
     

Log in to post a comment.