Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: How to remove part of ODE solution containing (0.+0.i)'s

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44660] Re: [mg44646] How to remove part of ODE solution containing (0.+0.i)'s
  • From: "Mihajlo Vanevic" <mvanevic at gawab.com>
  • Date: Thu, 20 Nov 2003 03:16:26 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Use Chop[] (see help browser for details)

In[]:=
Chop[0. + 0. I]

Out[]=
0

In[]:=
Chop[{1. + 0.7*I, 0. + 0.*I}]

Out[]=
{1.\[InvisibleSpace] + 0.7 \[ImaginaryI], 0}


Regards,				 
         Mihajlo Vanevic
         www.mihajlo.greatnow.com
         2003-11-19

**************************************************************
*    At 2003-11-19, 04:59:00 
*        John Jansen, Johh at Jansen.net  wrote:
**************************************************************
>Hi Group,
>
>When solving an ODE i get the correct result, but a lot of (0.+0.i) 
>expressions are included. How can i tell Mathematica(V5) to discard 
>these "nearly" zero's. Guess it is something about precision or accuracy.
>
>Best regards (Mathematica-newbee)
>John
**************************************************************




  • Prev by Date: Re: filled plot on part of x-interval
  • Next by Date: PrincipalValue of Integral
  • Previous by thread: RE: How to remove part of ODE solution containing (0.+0.i)'s
  • Next by thread: Re: How to remove part of ODE solution containing (0.+0.i)'s