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: Chop?
Replies: 2   Last Post: Apr 13, 2000 11:38 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Russell Towle

Posts: 70
Registered: 12/3/04
Chop?
Posted: Apr 11, 2000 11:17 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I have been noticing lately that sometimes Chop does not succeed in
reducing numbers close to 0 to 0. Although my email program scrambled the
superscripts, those '-7's down there are from the 10^-7's where I would
expect (and would want) to see plain 0. Mathematica version 4.01 on a Mac. Copied
as plain text from OutputForm.

This failure of Chop has ruined one of my most important algorithms, which
takes the Union of a list of n-vectors. It has wrecked in turn my most
important notebooks. Notice, if you will, members 5 and 6 of the list
below, where the z component should have Chopped to zero, but instead is
two very small numbers of opposite sign.

In[221]:=
Chop[q2]

Out[221]=
{{-0.707107, -1., 0}, {-0.707107, 0, -1.}, {-0.707107, 0, 1.}, {-0.707107,
1., 0},

-7 -7
{-0.707107, -1., -1.11022 10 }, {-0.707107, -1., 1.11022 10 },

-7 -7
{-0.707107, 1.11022 10 , -1.}, {-0.707107, 1., 1.11022 10 },
{-0.707107, -1., 0},

{-0.707107, 0, -1.}, {-0.707107, 0, 1.}, {-0.707107, 1., 0}, {0.707107,
-1., 0},

{0.707107, 0, -1.}, {0.707107, 0, 1.}, {0.707107, 1., 0},

-7 -7
{0.707107, -1., -1.11022 10 }, {0.707107, -1., 1.11022 10 },

-7 -7
{0.707107, 1.11022 10 , -1.}, {0.707107, 1., 1.11022 10 }}

Russell Towle
Box 141
Dutch Flat, CA 95714
(530) 389-2872






Date Subject Author
4/11/00
Read Chop?
Russell Towle
4/13/00
Read Re: Chop?
Jens-Peer Kuska
4/13/00
Read Re: Chop?
Kevin J. McCann

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.