用sympy画图显示错误can't convert expression to float

要求是用符号函数画图的方法在同一个坐标系中画出 y=sin(x/2) 在[-2pi,2pi] 的图像和 y = exp(x/10) 在 [-3,3] 上的图像
以下是我的代码
from sympy.plotting import plot
from sympy.abc import x,pi
from sympy.functions import sin
plot((sin(x/2),(x,-2pi,2pi)),(exp(x/10) ,(x,-3,3)))
执行之后显示不能转换为浮点型是为什么啊?应该怎么改正

首先不会出现这个can't convert expression to float报错,出现的是exp not defined
然后plot好像是需要from sympy import *的

from sympy.plotting import plot
from sympy.abc import x,pi
from sympy.functions import sin
from sympy import *
plot((sin(0.5*x),(x,-2*pi,2*pi)),(exp(0.1*x),(x,-3,3)))

用这个代码就行,不知道为啥除法不行但是乘法行

加一行from sympy import *就行

from sympy.plotting import plot
from sympy.abc import x,pi
from sympy.functions import sin
from sympy import *
plot((sin(x/2),(x,-2*pi,2*pi)),(exp(x/10) ,(x,-3,3)))

img

无法转换格式的意思,还有别的报错了吗?发给我看看吧,兄弟

from sympy.plotting import plot
import math
from sympy.functions import sin, exp
import sympy

x = sympy.Symbol('x')
plot((sin(x/2),(x,-2 *math.pi,2 *math.pi)),(exp(x/10) ,(x,-3,3)))