Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Murray Eisenberg

Posts: 2,097
Registered: 12/6/04
Re: How to remove the "0." from "0. + 1.41774i"
Posted: Jun 22, 2013 3:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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









Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.