Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: How to remove the "0." from "0. + 1.41774i"
Replies: 4   Last Post: Jun 22, 2013 3:26 AM

 Messages: [ Previous | Next ]
 Sseziwa Mukasa Posts: 108 Registered: 8/26/07
Re: How to remove the "0." from "0. + 1.41774i"
Posted: Jun 22, 2013 3:26 AM

(Debug) In[3]:= Rationalize[0. + 1.41774 I]
(Debug) Out[3]= (70887 I)/50000

That has it's own problems with respect to large values in the numerator or denominator.

On Jun 20, 2013, at 4:44 AM, Mike Bayville <mike.bayville@gmail.com> wrote:

> Can anyone suggest a built-in function for removing the "0." from "0. + 1.41774i"?
>
> Thanks!
>
> Mike
>
> INPUT
> A={{-1.2, 1.5}, {-2.3, 1.2}};
> Clear[eigenvalue];
> {eigenvalue[1], eigenvalue[2]} = Chop[Eigenvalues[A]]
> Chop[eigenvalue[1]]
> Chop[eigenvalue[2]]
>
> OUTPUT
> {0. + 1.41774i, 0. - 1.41774i}
> 0. + 1.41774i
> 0. - 1.41774i
>

Date Subject Author
6/21/13 Bob Hanlon
6/21/13 Harvey P. Dale
6/21/13 Mike Bayville
6/22/13 Sseziwa Mukasa