[sage-support] Re: [sage-cloud]: abs return negative value
On Monday, 6 July 2015 18:05:18 UTC+1, Maurizio Parton wrote: On cloud.sagemath.com, on a brand new notebook, if I evaluate abs(-2^(1/2)) the result is -sqrt(2) Expected result: sqrt(2) or abs(-sqrt(2)) In my local installation (SageMath Version 6.6, Release Date: 2015-04-14, Ubuntu 15.04) it works fine. Any idea where could be the problem? this is a bug... Note that -sqrt(2) is a symbolic expression, and taking its abs somehow fails on recent Sage versions; e.g on the latest 6.8.beta. Thanks! -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] plot a 3d polyhedron with transparent background?
Is it possible to plot a 3d polyhedron with transparent background? When I use .plot(transparent=True) on a 2d polyhedron, and save to a file, the background is transparent. When I do the same for a 3d polyhedron, the background is white. p2=Polyhedron(vertices=[[0,1],[1,0]]) p3=Polyhedron(vertices=[[0,1,1],[1,0,0]]) p2_plot = p2.plot(transparent=True) p3_plot = p3.plot(transparent=True) p2_plot.save(the_file2) # saved image has transparent background p3_plot.save(the_file3) # saved image has white background thanks, Daniel -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] [sage-cloud]: abs return negative value
On cloud.sagemath.com, on a brand new notebook, if I evaluate abs(-2^(1/2)) the result is -sqrt(2) Expected result: sqrt(2) or abs(-sqrt(2)) In my local installation (SageMath Version 6.6, Release Date: 2015-04-14, Ubuntu 15.04) it works fine. Any idea where could be the problem? Thanks! -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] FYI about a SO post about using Sage as an external library
http://stackoverflow.com/questions/31250542/using-external-libraries-in-sage-python-matrix-inversion -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: [sage-cloud]: abs return negative value
On Monday, July 6, 2015 at 8:15:54 PM UTC+2, Dima Pasechnik wrote: On Monday, 6 July 2015 18:05:18 UTC+1, Maurizio Parton wrote: On cloud.sagemath.com, on a brand new notebook, if I evaluate abs(-2^(1/2)) the result is -sqrt(2) Expected result: sqrt(2) or abs(-sqrt(2)) In my local installation (SageMath Version 6.6, Release Date: 2015-04-14, Ubuntu 15.04) it works fine. Any idea where could be the problem? this is a bug... Note that -sqrt(2) is a symbolic expression, and taking its abs somehow fails on recent Sage versions; e.g on the latest 6.8.beta. Fixed in Pynac-0.4.1, backport in Pynac-0.3.9.1 (it was there in 0.3.8 actually already but review is lagging) http://trac.sagemath.org/ticket/18537 Regards, -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.