MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: a bug in Det of complex matrix - Mathematica 5


That's not the answer I get here, in Mathematica 5.0.1:

mat = {{-1., 1. - 1.*I}, 
   {-1., -1.*I}};
Det[mat]

1. + 0.*I

That's correct.

Bobby

Petr Kujan <kujanp at fel.cvut.cz> wrote in message news:<bv83db$ibs$1 at smc.vnet.net>...
> In Mathematica 5.0:
> 
> (* ERROR *)
> mat = {{-1., 1.- 1. I}, {-1., -1. I}};
> Det[mat]
> 
> (* Out[1]=   -1. + 1. I *)
> 
> 
> (* CORRECT *)
> rmat = Rationalize[mat];
> Det[rmat]
> 
> (* Out[2]=   1 *)
> 
> -------
>    Petr


  • Prev by Date: Re: a bug in Det of complex matrix - Mathematica 5
  • Next by Date: Re: displaying images in the complex plane
  • Previous by thread: Re: a bug in Det of complex matrix - Mathematica 5
  • Next by thread: displaying images in the complex plane