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
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
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
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
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
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.
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
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