## 45 Reputation

8 years, 140 days

## Error, too many levels of recursion...

Maple

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.

## Finite differences in polar coords...

Maple

Hello,

Remark by Markiyan Hirnyk:

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

## Incorrect result of function...

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.

 >
 >
 >
 >
 >
 >
 (1)
 >
 (2)
 >
 (3)
 >
 >

## Problem with finite differences...

Maple

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

## Generating list of matrices...

Maple

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
﻿