Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14963

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

From Murray Eisenberg <murray@math.umass.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to remove the "0." from "0. + 1.41774i"
Date 2013-06-22 07:27 +0000
Message-ID <kq3jkn$nec$1@smc.vnet.net> (permalink)
References <20130621100010.A61D36A41@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


No, Chop won't do that -- assuming you use the proper symbol I (or its equivalent Esc ii Esc):

   Chop[0. + 1.41774 I]
0. + 1.41774 I

On Jun 21, 2013, at 6:00 AM, Bill Rowe <readnews@sbcglobal.net> wrote:

> On 6/20/13 at 4:44 AM, mike.bayville@gmail.com (Mike Bayville) wrote:
>
>> Can anyone suggest a built-in function for removing  the "0." from
>> "0. + 1.41774i"?
>
> Chop. That is:
>
> In[1]:= Chop[0. + 1.41774 i]
>
> Out[1]= 1.41774 i
>
>

---
Murray Eisenberg                                    murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower            phone 413 549-1020 (H)
University of Massachusetts                               413 545-2838 (W)
710 North Pleasant Street                         fax   413 545-1801
Amherst, MA 01003-9305





Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: How to remove the "0." from "0. + 1.41774i" Murray Eisenberg <murray@math.umass.edu> - 2013-06-22 07:27 +0000

csiph-web