Irving

94 Reputation

2 Badges

14 years, 326 days

MaplePrimes Activity


These are questions asked by Irving

Hello my name is Irving 

I'm a Maple primer. I want to solve an PDE numerically and then save the data to file.

  I used:
> restart;
> g:=0.2;
> PDE := diff(u(x,t),t,t) -diff(u(x,t),x,x) + g*diff(u(x,t),t) - 1/2*(u(x,t)-u(x,t)^3)=0 ;
> IBC := {u(x,0)= tanh(x),u(-15,t)= -1,u(15,t)= 1 ,D[2](u)(x,0)= -1/(cosh(x))^2};
> sol:= pdsolve(PDE,IBC,numeric,u(x,t));


 Then how can I print the formated data from pdsolve, in the following form: (three row)

1 2 Page 2 of 2