On Mon, Oct 6, 2008 at 5:40 AM, ????? ??????? <mparmpaklo at gmail.com> wrote:
> h [i, j] := (1 + i*random(1000) + j)/(j*random(1000))+random(1000);
> x: genmatrix(h,10,10);
> b: dgesvd(x);
>
> but again i get an error.
Works for me (Maxima 5.16.2 + Windows XP).
What is the error message?
Note that you have to enter load(lapack); before calling dgesvd.
load(lapack) produces a lot of compilation messages -- that's OK.
> h [i, j] := (1 + i*random(1000) + j)/(j*random(1000))+random(1000);
> x: genmatrix(h,10,10);
> b: gamma(x);
>
> but again i get an error.
Probably you want something like: matrixmap(gamma, x);
Maxima math functions are defined for a single operand so if you
want to apply a function to an aggregate object (e.g. list, set,
or matrix) you need to say so explicitly (via some variety of map).
HTH
Robert Dodier