Opened 14 years ago

Closed 14 years ago

#5168 closed defect (fixed)

[with patch, positive review] matrix0.pyx: fix doctest for commutator

Reported by: jhpalmieri Owned by: was
Priority: trivial Milestone: sage-3.3
Component: linear algebra Keywords: matrix0, commutator
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Here is the extent of the docstring for the commutator method in matrix0.pyx:

        Return the commutator self*other - other*self.

        EXAMPLES:
            sage: A = Matrix(QQ[['t']], 2, 2, range(4))

Fix the doctest so that it actually computes a commutator.

Attachments (1)

5168.patch (900 bytes) - added by jhpalmieri 14 years ago.

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by jhpalmieri

Attachment: 5168.patch added

comment:1 Changed 14 years ago by cwitty

Summary: [with patch, needs review] matrix0.pyx: fix doctest for commutator[with patch, positive review] matrix0.pyx: fix doctest for commutator

New doctests look good, and they pass.

(Good catch on noticing the original bug, too.)

Positive review.

comment:2 Changed 14 years ago by mabshoff

Resolution: fixed
Status: newclosed

Merged in Sage 3.3.alpha6.

Cheers,

Michael

Note: See TracTickets for help on using tickets.