Question: Heat equation problem

Hi, I have written the following code in maple.. which I have to compare with the crank-nicolson scheme written in matlab.. that code is well.. but this is not working.. i need to analytically solve the heat equation PDE := diff(u(x,t),t)=1/2*diff(u(x,t),x,x) IBC := {u(x,0)=T0, u(0,t)=0, u(d,t)=0}: vals := {a=1/2, T0=0.1*sin(x), d=pi}: PDE := eval(PDE,vals); IBC := eval(IBC,vals); sol := pdsolve(PDE, IBC) i get this error Error, (in pdsolve/sys) too many arguments; some or all of the following are wrong: [{u(x, t)}, {u(0, t) = 0, u(pi, t) = 0, u(x, 0) = .1*sin(x)}]
Please Wait...