Describe a curve given by an implicit equation.
INPUT:
- ``f`` -- a function of two variables or equation in two variables
End users should not use this class but use the constrcutor :func:`ImplicitCurve`.
EXAMPLES::
sage: from phystricks.BasicGeometricObjects import *
sage: x,y=var('x,y')
sage: f(x,y)=x**2+1/x
sage: F=GeometricImplicitCurve(f(x,y)==2)
sage: G=GeometricImplicitCurve(x+y==2)
def phystricks.src.ImplicitCurve.GeometricImplicitCurve.graph |
( |
|
self, |
|
|
|
xrange, |
|
|
|
yrange, |
|
|
|
plot_points = 100 |
|
) |
| |
Return the graph corresponding to the implicit curve.
INPUT:
- ``xrange`` - the X-range on which the curve will be plotted.
- ``yrange`` - the Y-range on which the curve will be plotted.
EXAMPLE ::
sage: from phystricks.BasicGeometricObjects import *
sage: x,y=var('x,y')
sage: F=GeometricImplicitCurve(x-y==3)
sage: graph=F.graph((x,-3,3),(y,-2,2))
sage: print graph.bounding_box()
<BoundingBox xmin=1.0,xmax=3.0; ymin=-2.0,ymax=0.0>