next | previous | forward | backward | up | top | index | toc | home
ICMS2006 > nets

nets

i1 : ZZ[x,y]

o1 = ZZ [x, y]

o1 : PolynomialRing
i2 : x^2

      2
o2 = x

o2 : ZZ [x, y]
i3 : n = net x^33

      33
o3 = x
i4 : peek n

     +---+
     | 33|
o4 = |x  |
     +---+
i5 : n | n || n

      33 33
o5 = x  x
      33
     x
i6 : netTable( {{x^33, (x+y)^3}, {10!}},
        Boxes => true,
        Alignment => Center,
        HorizontalSpace => 1 )

     +---------+------------------------+
     |    33   |  3     2        2    3 |
o6 = |   x     | x  + 3x y + 3x*y  + y  |
     +---------+------------------------+
     | 3628800 |                        |
     +---------+------------------------+
i7 : help methods netTable

o7 = netTable(List) -- a table of boxes
     **********************************

     Synopsis
     ========

       * Usage: netTable v
       * Function: "netTable"
       * Inputs:
           * v, a list, a list of lists of things to be converted to nets and
             displayed as a table in a net
       * Outputs:
           * a net obtained by converting the elements of each list in the
             list of lists v to nets and arranging them in a table, as
             specified by the options
       * Optional inputs:
           * Boxes => a Boolean value, default value false, whether to draw
             boxes around the individual nets
           * BaseRow => an integer, default value 0, the index of the base
             row, for the purpose of setting the baseline net produced
           * HorizontalSpace => an integer, default value 0, the amount of
             space horizontally between entries or between entries and their
             enclosing boxes
           * VerticalSpace => an integer, default value 0, the amount of
             space vertically between entries or between entries and their
             enclosing boxes
           * Alignment => default value Left, Center, Left, Right, or a list
             of those symbols indicating horizontal adjustment; if it's a
             list, the i-th entry specifies the adjustment in the i-th
             column; if not, the symbol applies to all columns.


     Description
     ===========

     +----------------------------------------------------------------+
     |i1 : f = {{"hi there","foo"},{-3, 2^40}}                        |
     |                                                                |
     |o1 = {{hi there, foo}, {-3, 1099511627776}}                     |
     |                                                                |
     |o1 : List                                                       |
     +----------------------------------------------------------------+
     |i2 : netTable f                                                 |
     |                                                                |
     |o2 = hi therefoo                                                |
     |     -3      1099511627776                                      |
     +----------------------------------------------------------------+
     |i3 : netTable(f,Boxes=>true)                                    |
     |                                                                |
     |     +--------+-------------+                                   |
     |o3 = |hi there|foo          |                                   |
     |     +--------+-------------+                                   |
     |     |-3      |1099511627776|                                   |
     |     +--------+-------------+                                   |
     +----------------------------------------------------------------+
     |i4 : netTable(f,Boxes=>true,HorizontalSpace=>1,VerticalSpace=>1)|
     |                                                                |
     |     +----------+---------------+                               |
     |     |          |               |                               |
     |o4 = | hi there | foo           |                               |
     |     |          |               |                               |
     |     +----------+---------------+                               |
     |     |          |               |                               |
     |     | -3       | 1099511627776 |                               |
     |     |          |               |                               |
     |     +----------+---------------+                               |
     +----------------------------------------------------------------+
     |i5 : netTable(f,Boxes=>true,Alignment=>Center)                  |
     |                                                                |
     |     +--------+-------------+                                   |
     |o5 = |hi there|     foo     |                                   |
     |     +--------+-------------+                                   |
     |     |   -3   |1099511627776|                                   |
     |     +--------+-------------+                                   |
     +----------------------------------------------------------------+
     |i6 : netTable(f,Boxes=>true,BaseRow=>1)                         |
     |                                                                |
     |     +--------+-------------+                                   |
     |     |hi there|foo          |                                   |
     |     +--------+-------------+                                   |
     |o6 = |-3      |1099511627776|                                   |
     |     +--------+-------------+                                   |
     +----------------------------------------------------------------+

o7 : DIV

See also