Karl-Ranz

80 Reputation

2 Badges

17 years, 156 days

MaplePrimes Activity


These are questions asked by Karl-Ranz

Good Morning everyone and happy easter

I have a short question on Maples Eigenvectors procedure. I want to diagonalize a Matrix A, which works works perfectly using the following code:

A:= some quadratic (complex) float matrix

(l,L):=Eigenvectors(A):

B:=L . DiagonalMatrix(l) . MatrixInverse(L):

 

Excecuting this code tells me, that A=B, so it works.

 

Good evening everyone

I am trying to solve this new problem the whole day up till now and as it is getting very late, I thought asking someone smarter than me might help in the end.

What I experience at the moment is that a written program of mine, as given below, works pretty well, when I set Digits to 10 or less. 100000 loops are not a problem. Yet, as soon as I start increasing Digits to values greater that about 15, my program crashes after about 100 loops. I can see what is happening: The RAM (2GB), is full.

Good morning everyone

I have a question concerning Maple file output. Is there a way, that I can produce multiple files with Maple using a loop? My main problem is how to get Maple to create files with different names, like file1.txt -> file2.txt -> file3.txt ..... because so far i figured, that

fopen("file[i].txt",WRITE) , with i beeing the loop index

does not work :)

Thank you for any help

 

Karl

Hello everyone

I have a small, yet tricky question and hope someone knows a quick answer.

A calculation gives me a vector of say 10 complex numbers (floats). I want to store the amplitudes ( abs() ) and the phases ( argument() ) of these complex values in two seperate lists. Next, I want to sort the complex numbers by ascending amplitude, but I do not want to lose the phase belonging to each amplitude, for example:

Hello everyone I have a question about the use of ExportMatrix and ExportVector. I am currently working on a sheet, where a matrix is changed within a loop. At the end of each cycle of the loop, the eigenvalues of the matrix are calculated and given out in form of a vector. How can I export these eigenvalue-vectors to a textfile together with the index of the loop? I already tried to use ExportVector at the end of each cycle, but the command overwrites entries of previous cycles, so that only the very last eigenvalue-vector is noted. Thank you very much for any help.
Page 1 of 1