I set up some examples, together with output in emacs (sage mode), except 
for plot.

Could you please comment, what you'd like to change?  Except for plot, the 
results seem relatively consistent to me, but of course, this may be 
because I'm using the console.

Thanks for your patience,

Martin

"""
sage: g = graphs.RandomGNP(20, 0.5)
sage: m = random_matrix(ZZ, 20)
sage: f = sin(x)
sage: D = DyckWords(20).random_element()
sage: Z = ZZ
sage: all = [g,m,f,D,Z]

# 'repr' and 'str' follow the python strangeness, as explained in 
http://stackoverflow.com/questions/1436703/difference-between-str-and-repr-in-python,
 
and return a textual representation of the object.

sage: [repr(e) for e in all]
['RandomGNP(20,0.500000000000000): Graph on 20 vertices',
 '20 x 20 dense matrix over Integer Ring',
 'sin(x)',
 '[1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 
0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0]',
 'Integer Ring']

sage: [str(e) for e in all]
['RandomGNP(20,0.500000000000000)',
 '20 x 20 dense matrix over Integer Ring',
 'sin(x)',
 '((()((()())(()(()()(())))()()))())((()))',
 'Integer Ring']

sage: [ascii_art(e) for e in all]
[RandomGNP(20,0.500000000000000): Graph on 20 vertices,
 20 x 20 dense matrix over Integer Ring,
 sin(x),
                     /\                  
                /\/\/  \                 
       /\/\  /\/        \                
      /    \/            \/\/\           
   /\/                        \      /\  
  /                            \/\  /  \ 
 /                                \/    \,
 Integer Ring]]

sage: [latex(e) for e in all]
# summarizing :-)
[tikz code of the graph, the matrix as a latex array, \sin\left(x\right), 
tikz code of the DyckWord, \Bold{Z}]

sage: [view(e) for e in all]
[None, None, None, None, None]
# but opens a pdf viewer with the latex code typeset.

sage: [pretty_print(e) for e in all]
# no idea what this should do
# in sage 6.5, this seems to always hold html code containing latex code.

sage: [plot(e) for e in all]
# if I understand correctly, it should return a Graphics object, but I'm 
not completely sure what precisely this should contain.  Possibly:
[a drawing of the graph, 
 the matrix interpreted as a contourplot???, 
 a graph of the function with boundaries guessed, 
 probably raise an error for the DyckWord - or should it try to draw the 
word as a path?,
 probably raise an error for IntegerRing]

"""

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to