Changeset 1502


Ignore:
Timestamp:
Feb 8, 2014 7:35:43 AM (8 years ago)
Author:
jemian
Message:

better example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • topdoc/trunk/src/bcda/rest_table.py

    r1501 r1502  
    133133    print t.reST(fmt='complex')
    134134   
    135     import math
    136135    t = Table()
    137     t.labels = ('x', 'sqrt(x)', )
     136    t.labels = ('x', 'x^2', )
    138137    for ix in range(0,5):
    139138        x = 0.1*ix
    140         y = math.sqrt(x)
     139        y = x*x
    141140        t.rows.append([x, y])
    142141    print t.reST(fmt='simple')
Note: See TracChangeset for help on using the changeset viewer.