ASKSAGE: Sage Q&A Forum - Latest question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 10 Feb 2013 17:36:34 -0600Sympy geometry: can't compute tangent lineshttps://ask.sagemath.org/question/9795/sympy-geometry-cant-compute-tangent-lines/Here's the problem:
from sympy import symbols, Plot
from sympy.geometry import *
c1 = Circle(Point(0,0),2)
a = Point(3,0)
at = c1.tangent_lines(a)
DomainError: can't compute a Groebner basis over RR
A little web search indicates that this was a problem with older versions of sympy, but Sage includes a newer version for which this issue is not supposed to be a problem. Any ideas on how to get round this?
AlasdairSun, 10 Feb 2013 17:36:34 -0600https://ask.sagemath.org/question/9795/Using pyglet in sage?https://ask.sagemath.org/question/9793/using-pyglet-in-sage/I'm experimenting with the Geometry package in sympy, but plotting seems to require pyglet:
from sympy import symbols, Plot
from sympy.geometry import *
c1 = Circle(Point(0,0),2)
Plot(c1)
ImportError: pyglet is required for plotting.
visit http://www.pyglet.org/
Now, as far as I know, pyglet is installed (via python), but it doesn't seem to be "visible" in Sage. I would rather use Sage than python/sympy, as I also need to perform some numerical and symbolic computations, as well as plotting the results.
So either I need to know how to get Sage to use pyglet, or get sympy.geometry to use another plotting tool.
Any advice? Thanks!AlasdairSat, 09 Feb 2013 22:59:47 -0600https://ask.sagemath.org/question/9793/