F
Frank
While trying to set up a vector "Cross product matrix".
-- technically not really a matrix, but rather just
mechanically calculating the determinants from the
entries within a square matrix. I ran into a major
formatting irritant with Excel. When I convert
the polar form of a complex number from two cells
to rectangular form within a single cell:
=COMPLEX(D8*COS(E8*PI()/180),D8*SIN(E8*PI()/180));
the cell size expands to 42 digits in scientific
format, for example, as follows:
2.2998663682995E-005+2.0404386284536E-006i.
The problem appears to lie in the fact that Excel treats
complex numbers as text, and they cannot be formatted
in the normal way. I have searched several bookstores,
and looked at every major book on Excel, and VBA
macros. Complex numbers are treated in only a
superficial way, or not at all.
Microsoft does discuss the problem concerning XL2000 at:
http://support.microsoft.com/?kbid=213294
The VB code does not make a lot of sense to me,
also in particular the statement:
"=FormatComplex(A1,"0.00","0.0000")" does not
appear to work (Where would I put it anyway),
nor does their "Sample VBA Procedure". This may
be due to the fact that I am using Excel 97, so I
may just have to live with the very large cells.
Be interested to know if anybody else has observed
this problem.
Regards,
Frank
-- technically not really a matrix, but rather just
mechanically calculating the determinants from the
entries within a square matrix. I ran into a major
formatting irritant with Excel. When I convert
the polar form of a complex number from two cells
to rectangular form within a single cell:
=COMPLEX(D8*COS(E8*PI()/180),D8*SIN(E8*PI()/180));
the cell size expands to 42 digits in scientific
format, for example, as follows:
2.2998663682995E-005+2.0404386284536E-006i.
The problem appears to lie in the fact that Excel treats
complex numbers as text, and they cannot be formatted
in the normal way. I have searched several bookstores,
and looked at every major book on Excel, and VBA
macros. Complex numbers are treated in only a
superficial way, or not at all.
Microsoft does discuss the problem concerning XL2000 at:
http://support.microsoft.com/?kbid=213294
The VB code does not make a lot of sense to me,
also in particular the statement:
"=FormatComplex(A1,"0.00","0.0000")" does not
appear to work (Where would I put it anyway),
nor does their "Sample VBA Procedure". This may
be due to the fact that I am using Excel 97, so I
may just have to live with the very large cells.
Be interested to know if anybody else has observed
this problem.
Regards,
Frank