how to define a function v on an interval in sympy ?? and how to plot x(v) versus y

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ark0116
    New Member
    • Dec 2012
    • 1

    #1

    how to define a function v on an interval in sympy ?? and how to plot x(v) versus y

    hi, in Matlab i can define a function on a interval(use chebfun)
    the code like this :

    Code:
    v=chebfun('c',[3,5])
     x=sin(v)+cos(v)
     y=sin(v)-cos(v)
     plot(x,y)
    then got a figure of x versus y when v is in interval [3,5].

    how to do this in sympy??
    Last edited by Rabbit; Dec 9 '12, 11:56 PM. Reason: Please use code tags when posting code.
Working...