briceM

45 Reputation

3 Badges

5 years, 349 days

MaplePrimes Activity


These are questions asked by briceM

Hello,

I try his code:

 

for i to 6 do u[i, j] := (u[i-1, j]+u[i+1, j]+lambda*(u[i, j-1]+u[i, j+1])+sigma(h, r[i+1])*(u[i+1, j]-u[i-1, j]))/mu end do;


 
Error, too many levels of recursion.

I want to the  results of the analytic equations, for example:

                                                          
 u[1,j]= (u[0, j] + u[2, j] + lambda (u[1, j - 1] + u[1, j + 1])                                                       

      + sigma(h, r[2]) (u[2, j] - u[0, j]))/mu

.

.

.

.
Regards.

Hello,

 

Remark by Markiyan Hirnyk:

The part of the body of this question disappears after my edit of its title only.

I try to assign a value "y" function "g" but not working. Should be g(0.5,y)=800, but it is not appear in screen. Regards.

value_function.mw

``

restart

``

``

``

g(.5, y) := 200*y;

200*y

(1)

y := 4;

4

(2)

g(.5, y)

g(.5, 4)

(3)

``

``



Download value_function.mw

 

 

Hi, I'm trying to reproduce the code book Burden Faires (Poisson Equation Finite-Difference. Buden Faires book Numerical Analysis 9th) page 720, algorithm 12.1., But I do not get the exact calculations of Example 2 from page 722. Under the code in maple. Regards.

CODIGO.mw

Hello, I'm trying to enumerate matrices, each P [j] with j = 1,2,3 ... n-1. , and also can also the value of its elements with P [j] (r, k) for example.
n:=4;

for j from 1 to n-1 do 
P[j]:=Matrix(n); 
for l from 1 to n do
P[j](l,l):=1;  
end do; 
end do;
Error, invalid operator parameter name

Regards.

1 2 3 4 5 6 Page 5 of 6