Столкнулся с ошибкой ValueError: dsolve() and classify_ode() only work with functions of one variable, not u(x, t) видно что приведенный ниже код не работает с функциями больше одной переменной
from sympy import *
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press Ctrl+F8 to toggle the breakpoint.
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
x,t = symbols('x,t')
u = Function('u')
ex=diff(u(x,t),t)-9*diff(u(x,t),x,2)-1-2*x*t-5*t*sin(3*pi*x/2)
con={u(0,t):t,diff(u(x,t),x).subs(1,t):t*t,u(x,0):3*x}
y=dsolve(ex,ics=con)
print(ex)
print(simplify(y))
print_hi('PyCharm')
Как решить?