MathGroup Archive 2013

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg131264] Re: How to remove the "0." from "0. + 1.41774i"
  • From: Richard Fateman <fateman at cs.berkeley.edu>
  • Date: Sat, 22 Jun 2013 03:33:48 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20130620084452.627F569EF@smc.vnet.net> <58732FA6-FDFE-4100-8637-926219C678F6@gmail.com> <CAJxy_SqurCkArZaLNQDN+35u3YT8XjAL7g7wsL9cvnSOV9MLKg@mail.gmail.com> <kq17bv$goc$1@smc.vnet.net>

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"