[sage-support] bug/feature? increasing precision of a complex number

2008-12-27 Thread ggrafendorfer
Hi Developers, (sage 3.2.2 on a 32-bit Athlon running Debian etch) I would report it to trac (tell me if I should), but I'm not sure if it's a bug, increasing precision of a complex number which has imaginary part zero results in a real number: this works: sage: a = CC(-5. + I*0.0001).n(prec=10

[sage-support] Re: Using HTML and plot function

2008-12-27 Thread gerhard
There is probably a better way, but you could save the plot in a png file sage: P = plot(sin, (0,10)); P.save( 'foo.png' ) and insert it in your table with html( '') --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com T

[sage-support] Re: linking problems due to inconsistent libraries

2008-12-27 Thread gerhard
Figured out some more of it: the problem was the full path returned by tmp_filename(). The html statement will not get displayed. Creating a file name with a relative path instead will work. So the trivial answer (from a cell other than where r.dev_off() was called) might be sage: htm

[sage-support] Re: problem running combinatorial functions

2008-12-27 Thread Justin Walker
On Dec 27, 2008, at 12:11 PM, David Perkinson wrote: > > Here is a typical error when I try to run a combinatorial function: > > sage: combinations([1,2],3) > > File "", line 1 > [ ]gap> > ^ > SyntaxError: invalid syntax

[sage-support] Re: problem running combinatorial functions

2008-12-27 Thread mabshoff
On Dec 27, 9:11 am, David Perkinson wrote: Hi Dave, > Here is a typical error when I try to run a combinatorial function: > > sage: combinations([1,2],3) > >    File "", line 1 >      [  ]gap> >          ^ > SyntaxError: invalid syn

[sage-support] problem running combinatorial functions

2008-12-27 Thread David Perkinson
Here is a typical error when I try to run a combinatorial function: sage: combinations([1,2],3) File "", line 1 [ ]gap> ^ SyntaxError: invalid syntax Linux Fedora 9, 2.6.27.7-53.fc9.i686 on a Thinkpad SAGE Version 3.

[sage-support] Re: linking problems due to inconsistent libraries

2008-12-27 Thread mabshoff
On Dec 27, 5:39 am, gerhard wrote: Hi, > Thank you Michael, > that worked - sage 'make test' succeeds Ok. > Now I ran into another question I had solved before? > > How do I display a png file in the notebook? > I can't find it in the documentation?! > Started reading code, but the answer ou

[sage-support] Re: linking problems due to inconsistent libraries

2008-12-27 Thread gerhard
Thank you Michael, that worked - sage 'make test' succeeds Now I ran into another question I had solved before? How do I display a png file in the notebook? I can't find it in the documentation?! Started reading code, but the answer ought to be trivial... filename = tmp_filename() + '.png' r.pn