phystricks
Public Member Functions | Public Attributes | List of all members
phystricks.src.ImplicitCurve.GeometricImplicitCurve Class Reference
Inheritance diagram for phystricks.src.ImplicitCurve.GeometricImplicitCurve:
Inheritance graph
[legend]
Collaboration diagram for phystricks.src.ImplicitCurve.GeometricImplicitCurve:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, f)
 
def graph (self, xrange, yrange, plot_points=100)
 
def __str__ (self)
 

Public Attributes

 f
 
 parameters
 

Detailed Description

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)   

Constructor & Destructor Documentation

def phystricks.src.ImplicitCurve.GeometricImplicitCurve.__init__ (   self,
  f 
)

Member Function Documentation

def phystricks.src.ImplicitCurve.GeometricImplicitCurve.__str__ (   self)
Return string representation of this implicit curve

EXAMPLE::

    sage: from phystricks.BasicGeometricObjects import *
    sage: x,y=var('x,y')
    sage: f(x,y)=x**2+1/x
    sage: print GeometricImplicitCurve(f(x,y)==2)
    <Implicit curve of equation x^2 + 1/x - 2 == 0>
    sage: print GeometricImplicitCurve(x+y==7)   
    <Implicit curve of equation x + y - 7 == 0>
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>

Member Data Documentation

phystricks.src.ImplicitCurve.GeometricImplicitCurve.f
phystricks.src.ImplicitCurve.GeometricImplicitCurve.parameters

The documentation for this class was generated from the following file: