Opened 10 years ago

Closed 9 years ago

#14831 closed defect (fixed)

Doc typo in .is_similar() method

Reported by: tmonteil Owned by: mvngu
Priority: minor Milestone: sage-5.12
Component: documentation Keywords: beginner
Cc: Merged in: sage-5.12.beta1
Authors: Frédéric Chapoton Reviewers: Thierry Monteil
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

In the doc of the method .is_similar() (located in in sage/sage/matrix/matrix2.pyx), we get this unreadable block:

      sage: A = matrix(QQ, [[ 19, -7, -29], ...
      [-16, 11,  30], ...                   [ 15, -7, -25]]) sage: B =
      matrix(QQ, [[-38, -63,  42], ...                   [ 14,  25,
      -14], ...                   [-14, -21,  18]]) sage: A.charpoly()
      == B.charpoly() True sage: A.jordan_form() [-3| 0  0] [--+-----]
      [ 0| 4  1] [ 0| 0  4] sage: B.jordan_form() [-3| 0| 0]
      [--+--+--] [ 0| 4| 0] [--+--+--] [ 0| 0| 4] sage:
      A.is_similar(B) False

This is due to a missing ::.

Attachments (1)

trac_14831.patch (1.1 KB) - added by chapoton 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by chapoton

Attachment: trac_14831.patch added

comment:1 Changed 10 years ago by chapoton

Authors: Frédéric Chapoton
Status: newneeds_review

here is a patch, please review

comment:2 Changed 10 years ago by tmonteil

Reviewers: Thierry Monteil
Status: needs_reviewpositive_review

Looks good to me, though i am not sure you should consider yourself as a beginner ;)

comment:3 Changed 9 years ago by jdemeyer

Merged in: sage-5.12.beta1
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.