MathGroup Archive 2013

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

Search the Archive

Re: How to remove the "0." from "0. + 1.41774i"


1.  Mathematica 7.0 performs differently.

4.0*I  looks like 4.I

Mathematica 9. does this..
4.0*I looks like
   0.+4.I

2.  If you want to do something different, consider something
like this:

  f[x_Complex]: If [VerySmall[Re[x]], Im[x]*i, Re[x]+Im[x]*i]

where VerySmall is defined as you wish.  Could be  VerySmall(x_]:=x==0.0 
  for example.

Note that the answers are no longer complex numbers because they involve
the symbol i   not I.

You can do   %/. i->I
but then you will see 0.+4.I  again.

RJF







  • Prev by Date: Re: Windows 8 Problem with Mathematica
  • Next by Date: Re: automatic grid
  • Previous by thread: Re: How to remove the "0." from "0. + 1.41774i"
  • Next by thread: Re: How to remove the "0." from "0. + 1.41774i"