Did I find the right examples for you? yes no

All Samples(14)  |  Call(9)  |  Derive(0)  |  Import(5)
A curve in space.

A curve is defined by parametric functions for the coordinates, a
parameter and the lower and upper bounds for the parameter value.

Parameters
==========

function : list of functions
limits : 3-tuple(more...)

src/s/y/sympy-HEAD/sympy/integrals/integrals.py   sympy(Download)
from sympy.solvers.solvers import solve, posify
from sympy.functions import Piecewise, sqrt, sign
from sympy.geometry import Curve
from sympy.functions.elementary.piecewise import piecewise_fold
from sympy.series import limit

src/s/y/sympy-HEAD/sympy/geometry/tests/test_geometry.py   sympy(Download)
from sympy import (Abs, C, Dummy, Rational, Float, S, Symbol, cos, oo, pi,
                   simplify, sin, sqrt, symbols, tan)
from sympy.geometry import (Circle, Curve, Ellipse, GeometryError, Line, Point,
                            Polygon, Ray, RegularPolygon, Segment, Triangle,
                            are_similar, convex_hull, intersection, centroid)
 
    # this curve is independent of the indicated parameter
    c = Curve([2*s, s**2], (z, 0, 2))
 
    assert c.parameter == z
 
    # this is how it is normally used
    c = Curve([2*s, s**2], (s, 0, 2))
 
    assert c.parameter == s
        Point(-2*s + 7, 3*s + 6)
 
    raises(ValueError, lambda: Curve((s), (s, 1, 2)))
    raises(ValueError, lambda: Curve((x, x * 2), (1, x)))
 

src/s/y/sympy-polys-HEAD/sympy/integrals/integrals.py   sympy-polys(Download)
from sympy.solvers import solve
from sympy.functions import Piecewise
from sympy.geometry import Curve
from sympy.functions.elementary.piecewise import piecewise_fold
 

src/s/y/sympy-polys-HEAD/sympy/geometry/tests/test_geometry.py   sympy-polys(Download)
from sympy import Symbol, Rational, sqrt, pi, cos, oo, simplify, Real, raises
from sympy.geometry import Point, Polygon, convex_hull, Segment, \
        RegularPolygon, Circle, Ellipse, GeometryError, Line, intersection, \
        Ray, Triangle, are_similar, Curve
 
def test_curve():
    t = Symbol('t')
    z = Symbol('z')
    C = Curve([2*t, t**2], (z, 0, 2))
 

src/s/y/sympy-0.7.5/sympy/integrals/integrals.py   sympy(Download)
from sympy.solvers.solvers import solve, posify
from sympy.functions import Piecewise, sqrt, sign
from sympy.geometry import Curve
from sympy.functions.elementary.piecewise import piecewise_fold
from sympy.series import limit