I'm trying to read a matrix from the next file:
1+1e-18i 24
42 23.43e-23i
using u=Import["file.dat","Table"];
and then find, for example, the trace: Tr[u]
but this give me 1+1e-23i + 1+23.43e-23i
. Also, Chop
don't work.
How obtain the correct representation of the matrix in the file?
ReadList
will parse the numbers correctly, though I don't know if it will read in the correct format. $\endgroup$