I would like to write a program which draw parametric plot. I have to use matplotlib and sympy with n steps, n is the number of segments approximating the curve. I have a problem with using n. I put a program that doesn't use n and library matplotlib.
from sympy import *
from sympy.plotting import plot_parametric
import math
def param(x,y,t,a,b,n):
t = Symbol('t')
return plot_parametric(x,y,(t,a,b))
t = Symbol('t')
x=cos(t)
y=sin(t)
n=100
a=0
b=2*pi
plot_parametric(x,y,(t,0,2*pi),n)