selaf

15 Reputation

3 Badges

0 years, 211 days

MaplePrimes Activity


These are questions asked by selaf

I am trying to do something that was recommended in

https://math.stackexchange.com/questions/4583857/how-to-use-recursion-to-define-a-number-series-in-maple

but can't get the desired sequnce. See for example my code

v := proc(m) option remember; return m; end proc;
k := 5:
v(k + 1) := 0:
v(k):=1:
for i from k - 1 by -1 to 1 do
    v(i);
end do;

I get the output 1,1,1,1

I don't get it.

Hi, I want to generate a matrix of variables, say, something like, 

n:=4:

Matrix(n, n, [[a_11, a_12, a_13, a_14], [a_12, a_22, a_23, a_24], [a_13, a_23, a_33, a_34], [a_14, a_24, a_34, a_44]]) :

How can I do it automatically for arbitrary values of n?

At the end of this link - (2.14) and (2.15) - the problem and the solution have the same maple code, so I don't understand how to solve the problem.

https://www.maplesoft.com/support/help/Maple/view.aspx?path=isimplicitlydeclaredlocal

Page 1 of 1