예제 #1
0
파일: Pex3_5_2.py 프로젝트: sduzjp/Python
#程序文件Pex3_5_2.py
from sympy import plot_implicit as pt
from sympy.abc import x, y  #引进符号变量x,y

ezplot = lambda expr: pt(expr)
ezplot((x - 1)**2 + (y - 2)**3 - 4)
예제 #2
0
#程序文件Pex3_5_1.py
from pylab import rc
from sympy import plot_implicit as pt, Eq
from sympy.abc import x, y  #引进符号变量x,y
rc('font', size=16)
rc('text', usetex=True)
pt(Eq((x - 1)**2 + (y - 2)**3, 4), (x, -6, 6), (y, -2, 4),
   xlabel='$x$',
   ylabel='$y$')
예제 #3
0
from pylab import rc
from sympy import plot_implicit as pt, Eq
from sympy.abc import x, y

rc('font', size=16)
rc('text', usetex=False)
pt(Eq((x - 1)**2 + (y - 2)**3, 4), (x, -6, 6), (y, -2, 4),
   xlabel='$x$',
   ylabel='$y$')
from sympy import plot_implicit as pt
from sympy.abc import x, y

ezplot = lambda expr: pt(expr)
ezplot((x - 1)**2 + (y - 2)**3 - 4)
예제 #4
0
from sympy import plot_implicit as pt, Eq
from sympy.abc import x, y
import numpy as np

p1 = pt(Eq(x**3+y**4,1))