Macaulay2 » Documentation
Packages » SimpleDoc :: simpleDocFrob
next | previous | forward | backward | up | index | toc

simpleDocFrob -- a sample documentation node

Synopsis

Description

Each paragraph of text begins with "Text". The following line starts a sequence of Macaulay2 example input lines.

The output in the following example was automatically generated at the time of package installation.

i1 : M = matrix"1,2;3,4";

              2       2
o1 : Matrix ZZ  <-- ZZ
i2 : simpleDocFrob(3,M)

o2 = | 1 2 0 0 0 0 |
     | 3 4 0 0 0 0 |
     | 0 0 1 2 0 0 |
     | 0 0 3 4 0 0 |
     | 0 0 0 0 1 2 |
     | 0 0 0 0 3 4 |

              6       6
o2 : Matrix ZZ  <-- ZZ

A new section

The following example was generated by the documentation author.

i1 : 4+
     4

o1 = 8
i1000 : 2+2

o1000 = 4

See docExample for the code used to create this documentation.

a different way to use this method

  • Usage:
    simpleDocFrom_n M
  • Inputs:
  • Outputs:
  • Consequences:
    • There may be specific consequences.

Paragraph specific to this usage. Itemized lists can be created with the "Tree" keyword:

A heading

  • matrix(List) -- create a matrix from a doubly-nested list of ring elements or matrices
  • A subheading containing Hypertext
    • ZZ -- the class of all integers
    • Matrix -- the class of all matrices

Another heading

Acknowledgement

Acknowledge funding sources or collaborators here.

Contributors

Acknowledge contributors who are not listed as authors here.

References

Provide references for further reading.

Caveat

This is not a particularly useful function.

See also

Ways to use simpleDocFrob :

For the programmer

The object simpleDocFrob is a method function with options.