Hi people.
Pocketcas is awesome although I installed it only recently.
During many various classes I have to do different stuff to matrixes. Inverting, getting eigenvalues/vectors, checking its Jordan form, and so on. I tried to make a complete script that, given a matrix A, would give me everything I would want to know about it. This is the script:
"Matrix:"
A:=[[1,1,0,-1],[1,2,-1,1],[2,-1,1,1],[1,1,1,2]]
"det"
det(A)
"Inverse"
A^(-1)
"Jordan"
jordan(A)
"Char Poly"
factor(r2e(charpoly(A),x))
"Eigenvecs"
egvl(A)
"Eigenvals"
crationalroot(collect(simplify(r2e(charpoly(A),x))))
I am afraid I have to necro this thread, as I've been receiving the same error as the OP, which is:
"Could not execute xcas properly: No xcas output file found. Maybe a bug?"
When I attempt to run the script again, I get:
"Could not execute xcas properly: The process can not acess the file 'program file\PocketCAS\Out.txt' because it is being used by another process.'
I don't know why that happens. I've run longer scripts than this. PCas can easily invert that matrix and calculate its Jordan form (although, as you can see, it has two complex eigenvalues, and for some reason Pcas returns not a full complex jordan form, but only its first two columns and first two -real - eigenvecs"). I know this script is a little dumb when you look at it (Jordan gives both Eigvals and Eigvecs, so why bother?) but the point is - it won't work. For some reason, PCAS won't run all the script. It can do everything separately if I tell it, but not all of it? Why?
Also, how do I make PCAS callculate the jordan form over complex numbers (so it includes two complex eigvalues and all eigvectors)? The xcas manual seems to imply I need to be in complex mode - how do I get there on pcas?
Thanks for any help.