7 years, 40 days

## @Carl Love yes, works now just fine...

@Carl Love yes, works now just fine.

## @vv , it doesn't seem to be working...

@vv , it doesn't seem to be working.

I get the following error message:

Error, pds does not evaluate to a module

## @Carl Love here's my third try: &nb...

@Carl Love here's my third try:

 > restart;   PDE := diff(u(x, t), t) = diff(u(x, t), x, x)+sin(x+t)-cos(x+t);   IBC:= D[1](u)(0,t)=sin(t),         D[1](u)(1,t)=-0.000065*(u(1, t)+cos(1+t))^4+sin(1+t),         u(x,0)=1-cos(x); # # For x=0..1, t=0..1, the solution varies only very slowly # so I have increased the timestep/spacestep, just to speed # up results generation for diagnostic purposes #   pds := pdsolve( PDE, [IBC], numeric, time = t, range = 0 .. 1,                   spacestep = 0.1e-1, timestep = 0.1e-1,                   errorest=true                 )
 (1)
 > # # Plot the solution over the ranges x=0..1, # time=0..1. Not a lot happens! #   pds:-plot(x=1, t=0..1);
 > # # Plot the estimated error over the ranges x=0..1, # time=0..1 #   pds:-plot( err(u(x,t)), x=1,t=0..1);
 > # # Get some numerical solution values #   pVal:=pds:-value(u(x,t), output=procedurelist):   for k from 0 by 0.01 to 1 do       pVal(1, k)[2], pVal(1, k)[3];   od;
 >
 (2)
 >
 > restart;   PDE := diff(v(x, t), t) = diff(v(x, t), x, x);   IBC:= D[1](v)(0,t)=0,         D[1](v)(1,t)=-0.000065*v(1, t)^4,         v(x,0)=1; # # For x=0..1, t=0..1, the solution varies only very slowly # so I have increased the timestep/spacestep, just to speed # up results generation for diagnostic purposes #   pds1 := pdsolve( PDE, [IBC], numeric, time = t, range = 0 .. 1,                   spacestep = 0.1e-1, timestep = 0.1e-1,                   errorest=true                 ); # # Plot the solution over the ranges x=0..1, # time=0..1. Not a lot happens! #   pds1:-plot(x=1, t=0..1);
 >
 >

## @tomleslie here's the code:   ...

@tomleslie here's the code:

## @Preben Alsholm thanks. BTW do you ...

@Preben Alsholm thanks.

BTW do you know why did the collocation code you wrote doesn't seem to work for n:=91 and T:=[seq(0.1..1,0.01)];?

Did you try to excute the code in your machine with the change above that I changed?

I appreciate your help, but I would like to use collocation method, so I am puzzled why it's get stuck on what I changed.

## @Preben Alsholm ,I want to use 100 ...

@Preben Alsholm ,I want to use 100 points for the precision on the accuracy of the numerical solution.

My colleague told me that 10 points of sampling isn't enough for what we want to account for.

## @Preben Alsholm , if I want to use ...

@Preben Alsholm , if I want to use 100 points, I need to change n:=100 and T:=[seq(0..1,0.01)];

I changed half an hour ago to n:=91 and T:=[seq(0.1..1,0.01)]; in the code and the code still evaluates on maple 18, is there a way to shorten the computation time?

One of my colleagues told me that something is wrong in the code if it takes that much time to evaluate?

## @Preben Alsholm how do I find the n...

@Preben Alsholm how do I find the numerical values of the approximated solution at the collocation points?

## @Preben Alsholm For my problem I ca...

@Preben Alsholm For my problem I can use the following discretization scheme:

If we take time steps x_i = ih, y_j = jh, then:

1/h^2(-u_{i,j-1}-u_{i-1,j}+4u_{i,j} - u_{i+1,j} - u_{i,j+1}) = \sqrt(u_{i,j}) + (u_{i+1,j}-u_{i-1,j})^2/(4h^2 * u_{i,j}^{3/2}

But how to implement this in maple?

Thanks.

## @Preben Alsholm , how can I plot th...

@Preben Alsholm , how can I plot the error of this approximated solution?

@Carl Love u(x1,x2,x3,x4) satisfies: d^2u/dx1^2+d^2u/dx2^2 = d^2u/dx3^2+d^2u/dx4^2

and u is twice differentiable.

## error estimate....

@Preben Alsholm , hi, do you happen to know how can I estimate the error in this numerical solution?

## response...

@Preben Alsholm , this is another recursive integral equation which I want to solve numerically, I thought I could do it by using maple.

## the recursion...

@Axel Vogt t>0, we can also truncate it to t<1.

## @tomleslie  Thanks, I appreciate yo...

Thanks, I appreciate your time you spent on this.